summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-21 13:52:01 +0300
committerAndrew Dolgov <[email protected]>2010-11-21 13:52:01 +0300
commit4aeafea2837795bdda930bfbe90d26f943e6fcce (patch)
tree360a1c612e7359c795ccf1bc187aa81475062f58 /tt-rss.js
parenta3042404549888903a350d1009f6d76c91d7b011 (diff)
rework hotkey blocking on INPUT elements
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 4386fe2ee..c20994076 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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