From d0d958b88776bdaff803707167ff1ada92d9b872 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 18 Apr 2016 07:56:18 +0100 Subject: 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. --- content_scripts/hud.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'content_scripts') 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 -- cgit v1.2.3