summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index bf963d6ea..3bbd77f93 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -743,7 +743,13 @@ function hotkey_handler(e) {
closeInfoBox();
}
- if (dialogs.length > 0 || !hotkeys_enabled) {
+ 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;
}