summaryrefslogtreecommitdiff
path: root/keybind.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-06-24 19:03:57 +0100
committerNick White <git@njw.me.uk>2011-06-24 19:03:57 +0100
commit909157e8c39874f2b980d93fc343471df7d3bd43 (patch)
tree3001e5274bb38db5fe64cf37d6a45b412d1fb159 /keybind.js
parent166f2d37e968becb4deb6a6211ce63eb111685da (diff)
Improve keybind cleanness
Diffstat (limited to 'keybind.js')
-rw-r--r--keybind.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/keybind.js b/keybind.js
index c89b715..060d8f2 100644
--- a/keybind.js
+++ b/keybind.js
@@ -5,5 +5,6 @@
})();
function keybind(e) {
- if(e.keyCode == 82 && e.ctrlKey && e.altKey) simplyread();
+ if(e.ctrlKey && e.altKey && String.fromCharCode(e.keyCode) == "R")
+ simplyread();
}