summaryrefslogtreecommitdiff
path: root/keybind.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-15 21:38:13 +0000
committerNick White <git@njw.me.uk>2010-11-15 21:38:13 +0000
commit5e58b83688d1953bbae0dd492f51eb4ea7c222d3 (patch)
tree8bfd3afe24c8816cd3be28664dbc6b839634421d /keybind.js
parent9e11b949979529561e1a4d50ec43995983d1042e (diff)
Allow keybinding in chromium
Diffstat (limited to 'keybind.js')
-rw-r--r--keybind.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/keybind.js b/keybind.js
new file mode 100644
index 0000000..ed5ae3a
--- /dev/null
+++ b/keybind.js
@@ -0,0 +1,11 @@
+/*
+ * See COPYING file for copyright, license and warranty details.
+ */
+(function() {
+ document.addEventListener('keydown', keybind, false);
+})();
+
+function keybind(e) {
+ if (e.keyIdentifier == "U+0052" && e.ctrlKey && e.altKey) // ctrl-alt-r
+ simplyread();
+}