diff options
author | Nick White <git@njw.me.uk> | 2011-06-24 18:50:44 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-06-24 18:50:44 +0100 |
commit | 166f2d37e968becb4deb6a6211ce63eb111685da (patch) | |
tree | 7acea2f30be68db4240eacfa2a680b0ea9af7694 /keybind.js | |
parent | 46b278a007fdc87b9337015ad7208c257d0fdff1 (diff) |
Nice little cleanups
Diffstat (limited to 'keybind.js')
-rw-r--r-- | keybind.js | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,11 +1,9 @@ -/* - * See COPYING file for copyright, license and warranty details. - */ +/* 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(); + if(e.keyCode == 82 && e.ctrlKey && e.altKey) simplyread(); } |