aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBranden Rolston2010-04-28 11:36:16 -0700
committerBranden Rolston2010-04-28 11:36:16 -0700
commit07d8cc8787eca94ed733176b8e7961580c7dc9ec (patch)
tree677dacabe2b5315c41f1e51546ae273eb409c1a1 /lib
parent87e611dccd8a9c6b4ee681fc88f2a461f76e830a (diff)
downloadvimium-07d8cc8787eca94ed733176b8e7961580c7dc9ec.tar.bz2
Shift key toggles current/new tab in link hints mode.
Diffstat (limited to 'lib')
-rw-r--r--lib/keyboardUtils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/keyboardUtils.js b/lib/keyboardUtils.js
index a47d273f..233ba6a9 100644
--- a/lib/keyboardUtils.js
+++ b/lib/keyboardUtils.js
@@ -1,4 +1,4 @@
-var keyCodes = { ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32 };
+var keyCodes = { ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32, shiftKey: 16 };
// This is a mapping of the incorrect keyIdentifiers generated by Webkit on Windows during keydown events to
// the correct identifiers, which are correctly generated on Mac. We require this mapping to properly handle
@@ -48,4 +48,4 @@ function isPrimaryModifierKey(event) {
function isEscape(event) {
return event.keyCode == keyCodes.ESC ||
(event.ctrlKey && getKeyChar(event) == '['); // c-[ is mapped to ESC in Vim by default.
-} \ No newline at end of file
+}