Merge "SideBySide2: Document Ctrl-F/Ctrl-B shortcuts"

This commit is contained in:
Edwin Kempin
2014-01-17 06:57:49 +00:00
committed by Gerrit Code Review
4 changed files with 9 additions and 0 deletions

View File

@@ -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)

View File

@@ -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,

View File

@@ -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();

View File

@@ -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