aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPhil Crosby2012-04-29 21:44:49 -0700
committerPhil Crosby2012-04-29 21:44:49 -0700
commit1abee7d66f68da2b48d88832eea4e2d045cc1b0b (patch)
tree553253eae4e993b686ea1aa812776d9601416248 /lib
parente81f8c7e82611d5ee7e32dec6a3a0bdc546da414 (diff)
downloadvimium-1abee7d66f68da2b48d88832eea4e2d045cc1b0b.tar.bz2
Use keycodes object
Diffstat (limited to 'lib')
-rw-r--r--lib/keyboardUtils.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/keyboardUtils.js b/lib/keyboardUtils.js
index 84e860ba..52544c73 100644
--- a/lib/keyboardUtils.js
+++ b/lib/keyboardUtils.js
@@ -1,4 +1,6 @@
-var keyCodes = { ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32, shiftKey: 16, f1: 112, f12: 123};
+var keyCodes = {
+ ESC: 27, backspace: 8, deleteKey: 46, enter: 13, space: 32, shiftKey: 16, f1: 112, f12: 123, tab: 9
+};
var keyNames = { 37: "left", 38: "up", 39: "right", 40: "down" }
// This is a mapping of the incorrect keyIdentifiers generated by Webkit on Windows during keydown events to