1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 06:25:57 +00:00

rework hotkey blocking on INPUT elements

This commit is contained in:
Andrew Dolgov
2010-11-21 13:52:01 +03:00
parent a304240454
commit 4aeafea283
5 changed files with 2 additions and 43 deletions

View File

@@ -636,11 +636,9 @@ function rescoreCurrentFeed() {
}
function hotkey_handler(e) {
try {
var widget = dijit.getEnclosingWidget(e.target);
if (widget && Element.visible(widget.domNode)) return;
if (e.target.nodeName == "INPUT") return;
var keycode;
var shift_key = false;
@@ -669,17 +667,6 @@ function hotkey_handler(e) {
closeInfoBox();
}
var dialog = dijit.byId("infoBox");
var dialog_visible = false;
if (dialog)
dialog_visible = Element.visible(dialog.domNode);
if (dialog_visible || !hotkeys_enabled) {
console.log("hotkeys disabled");
return;
}
if (keycode == 16) return; // ignore lone shift
if (keycode == 17) return; // ignore lone ctrl