1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-22 11:36:38 +02:00

hotkey_handler: one more tiny tweak

This commit is contained in:
Andrew Dolgov 2017-05-05 11:46:16 +03:00
parent 5f5f92da50
commit 46b433933e

View 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) {