diff options
author | Andrew Dolgov <[email protected]> | 2017-05-05 11:46:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-05-05 11:46:16 +0300 |
commit | 46b433933e2a8c59810c964b0a889d337758b7a2 (patch) | |
tree | eef678cf362a8486b3ea09e1a64430f3b3f1e204 /js/tt-rss.js | |
parent | 5f5f92da50001d274ffd326ae777de545ca07def (diff) |
hotkey_handler: one more tiny tweak
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index c3a5a5fd4..c51e25db5 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -860,8 +860,6 @@ function hotkey_handler(e) { keycode = e.which; } - var keychar = String.fromCharCode(keycode).toLowerCase(); - if (keycode == 27) { // escape hotkey_prefix = false; } @@ -870,6 +868,7 @@ function hotkey_handler(e) { if (keycode == 17) return; // ignore lone ctrl var hotkeys = getInitParam("hotkeys"); + var keychar = String.fromCharCode(keycode).toLowerCase(); if (!hotkey_prefix && hotkeys[0].indexOf(keychar) != -1) { |