summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-17 10:12:50 +0300
committerAndrew Dolgov <[email protected]>2010-11-17 10:12:50 +0300
commit439caa8b93b8d0f38e0c565367511695e4b5c6f8 (patch)
tree3a232b2e0c666e48b9a3af659085a4783e9adbdf /tt-rss.js
parent76657c46b87b66fe2bdd1fd9cf56a84016530811 (diff)
dialog behaviour fixes
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;
}