Merge "SideBySide2: Document Ctrl-F/Ctrl-B shortcuts"
This commit is contained in:
@@ -178,7 +178,9 @@ region on one line to emphasize what the comment is related to.
|
||||
|
||||
Key bindings:
|
||||
|
||||
* j / k: next line / previous line
|
||||
* n / p: next diff chunk / previous diff chunk
|
||||
* <Ctrl> + f / <Ctrl> + b: next page / previous page
|
||||
* ] / [: next file / previous file
|
||||
* u: up to change
|
||||
* c: create a new inline comment (focus has to be in codemirror view)
|
||||
|
||||
@@ -401,6 +401,9 @@ public class SideBySide2 extends Screen {
|
||||
keysNavigation.add(
|
||||
new NoOpKeyCommand(KeyCommand.M_SHIFT, 'n', PatchUtil.C.commentNext()),
|
||||
new NoOpKeyCommand(KeyCommand.M_SHIFT, 'p', PatchUtil.C.commentPrev()));
|
||||
keysNavigation.add(
|
||||
new NoOpKeyCommand(KeyCommand.M_CTRL, 'f', PatchUtil.C.pageNext()),
|
||||
new NoOpKeyCommand(KeyCommand.M_CTRL, 'b', PatchUtil.C.pagePrev()));
|
||||
|
||||
keysAction = new KeyCommandSet(Gerrit.C.sectionActions());
|
||||
keysAction.add(new NoOpKeyCommand(0, KeyCodes.KEY_ENTER,
|
||||
|
||||
@@ -49,6 +49,8 @@ public interface PatchConstants extends Constants {
|
||||
String chunkNext2();
|
||||
String commentPrev();
|
||||
String commentNext();
|
||||
String pagePrev();
|
||||
String pageNext();
|
||||
String fileList();
|
||||
String expandComment();
|
||||
String expandAllCommentsOnCurrentLine();
|
||||
|
||||
@@ -31,6 +31,8 @@ chunkPrev2 = Previous diff chunk
|
||||
chunkNext2 = Next diff chunk or search result
|
||||
commentPrev = Previous comment
|
||||
commentNext = Next comment
|
||||
pagePrev = Page up
|
||||
pageNext = Page down
|
||||
fileList = Browse files in patch set
|
||||
expandComment = Expand or collapse comment
|
||||
expandAllCommentsOnCurrentLine = Expand or collapse all comments on current line
|
||||
|
||||
Reference in New Issue
Block a user