Automatically set focus to patch tables when showing a patch screen
This way users can immediately use keyboard navigation within the patch, especially to insert comments and move the cursor bar. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -56,5 +56,6 @@ public class PatchSideBySideScreen extends PatchScreen {
|
||||
private void display(final SideBySidePatchDetail detail) {
|
||||
sbsTable.setAccountInfoCache(detail.getAccounts());
|
||||
sbsTable.display(detail);
|
||||
sbsTable.finishDisplay(true);
|
||||
}
|
||||
}
|
||||
|
@@ -53,5 +53,6 @@ public class PatchUnifiedScreen extends PatchScreen {
|
||||
diffTable.setPatchKey(detail.getPatch().getKey());
|
||||
diffTable.setAccountInfoCache(detail.getAccounts());
|
||||
diffTable.display(detail.getLines());
|
||||
diffTable.finishDisplay(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user