commit | 5986e45470ed7c995fa468f74c72a5a8cfc8440c | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Wed Jan 15 09:30:19 2014 -0800 |
committer | Shawn Pearce <sop@google.com> | Wed Jan 15 09:30:19 2014 -0800 |
tree | c904c51fd74b0e60e1c1abe0111bfcc6faa57305 | |
parent | 867db4202ce0968c7e2ba23a4235911fe736673c [diff] |
SideBySide2: Bind shift-space to page up Space goes page down, shift-space usually goes page up in a browser. Match that expected default behavior. Change-Id: I79288e16c53c2690c507022d4560c84dfdbbb91c
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/SideBySide2.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/SideBySide2.java index ebc767b..92b4867 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/SideBySide2.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/SideBySide2.java
@@ -343,6 +343,12 @@ CodeMirror.handleVimKey(cm, "<PageDown>"); } }) + .on("Shift-Space", new Runnable() { + @Override + public void run() { + CodeMirror.handleVimKey(cm, "<PageUp>"); + } + }) .on("Ctrl-A", new Runnable() { @Override public void run() {