mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 18:51:29 +00:00
hotkey_handler: one more tiny tweak
This commit is contained in:
@@ -860,8 +860,6 @@ function hotkey_handler(e) {
|
|||||||
keycode = e.which;
|
keycode = e.which;
|
||||||
}
|
}
|
||||||
|
|
||||||
var keychar = String.fromCharCode(keycode).toLowerCase();
|
|
||||||
|
|
||||||
if (keycode == 27) { // escape
|
if (keycode == 27) { // escape
|
||||||
hotkey_prefix = false;
|
hotkey_prefix = false;
|
||||||
}
|
}
|
||||||
@@ -870,6 +868,7 @@ function hotkey_handler(e) {
|
|||||||
if (keycode == 17) return; // ignore lone ctrl
|
if (keycode == 17) return; // ignore lone ctrl
|
||||||
|
|
||||||
var hotkeys = getInitParam("hotkeys");
|
var hotkeys = getInitParam("hotkeys");
|
||||||
|
var keychar = String.fromCharCode(keycode).toLowerCase();
|
||||||
|
|
||||||
if (!hotkey_prefix && hotkeys[0].indexOf(keychar) != -1) {
|
if (!hotkey_prefix && hotkeys[0].indexOf(keychar) != -1) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user