]> git.wh0rd.org - tt-rss.git/commitdiff
hotkey_handler: one more tiny tweak
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 5 May 2017 08:46:16 +0000 (11:46 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Fri, 5 May 2017 08:46:16 +0000 (11:46 +0300)
js/tt-rss.js

index c3a5a5fd48168ee56bf8e45ba74da5f151f180da..c51e25db5940b1445eca54838256302f684778f8 100644 (file)
@@ -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) {