aboutsummaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorStephen Blott2016-04-18 07:56:18 +0100
committerStephen Blott2016-04-18 07:56:18 +0100
commitd0d958b88776bdaff803707167ff1ada92d9b872 (patch)
tree63d8d8218face67dba52a6534cf6b8df3162ce56 /pages
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 'pages')
-rw-r--r--pages/help_dialog.coffee4
1 files changed, 4 insertions, 0 deletions
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