aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-04-18 07:56:18 +0100
committerStephen Blott2016-04-18 07:56:18 +0100
commitd0d958b88776bdaff803707167ff1ada92d9b872 (patch)
tree63d8d8218face67dba52a6534cf6b8df3162ce56 /content_scripts
parent289798866a332f52253c4c52f8d6874211d25611 (diff)
downloadvimium-d0d958b88776bdaff803707167ff1ada92d9b872.tar.bz2
Abandon HUD on help-dialog close.
If the help dialog loses the focus and closes, then we abandon any HUD which is being displayed. This ensures that - when the help dialog is reopenned - we're not displaying an old, out-of-date HUD message.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/hud.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index 7ad13aaf..4ba8557c 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -7,6 +7,7 @@ HUD =
hudUI: null
_displayElement: null
findMode: null
+ abandon: -> @hudUI?.hide false
# This HUD is styled to precisely mimick the chrome HUD on Mac. Use the "has_popup_and_link_hud.html"
# test harness to tweak these styles to match Chrome's. One limitation of our HUD display is that