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

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