aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/hud.coffee1
-rw-r--r--pages/help_dialog.coffee4
2 files changed, 5 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
diff --git a/pages/help_dialog.coffee b/pages/help_dialog.coffee
index b2d33f95..373aa94a 100644
--- a/pages/help_dialog.coffee
+++ b/pages/help_dialog.coffee
@@ -69,9 +69,13 @@ UIComponentServer.registerHandler (event) ->
HelpDialog.init()
HelpDialog.show event.data
Frame.postMessage "registerFrame"
+ # If we abandoned (see below) in a mode with a HUD indicator, then we have to reinstate it.
+ Mode.setIndicator()
when "hidden"
# Unregister the frame, so that it's not available for `gf` or link hints.
Frame.postMessage "unregisterFrame"
+ # Abandon any HUD which might be showing within the help dialog.
+ HUD.abandon()
root = exports ? window
root.HelpDialog = HelpDialog