diff options
author | Andrew Dolgov <[email protected]> | 2010-11-17 10:12:50 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-17 10:12:50 +0300 |
commit | 439caa8b93b8d0f38e0c565367511695e4b5c6f8 (patch) | |
tree | 3a232b2e0c666e48b9a3af659085a4783e9adbdf /tt-rss.js | |
parent | 76657c46b87b66fe2bdd1fd9cf56a84016530811 (diff) |
dialog behaviour fixes
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } |