summaryrefslogtreecommitdiff
path: root/keybind.js
diff options
context:
space:
mode:
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();
+}