aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_key_handler.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-17 11:57:16 +0100
committerStephen Blott2016-04-17 11:57:16 +0100
commitcefbb461a3b564845a61893fcbe5faa0084c6f4c (patch)
tree38743486ac59f76462d6d6da9c8c90038c467834 /content_scripts/mode_key_handler.coffee
parent014f53fb091ac8672d3efbeca13a494c15d8afcb (diff)
parent5c3e4bda2968486e23f8cc3410e776de67fec849 (diff)
downloadvimium-cefbb461a3b564845a61893fcbe5faa0084c6f4c.tar.bz2
Merge pull request #2100 from smblott-github/rework-ui-component-focus-handling
Rework ui component focus handling
Diffstat (limited to 'content_scripts/mode_key_handler.coffee')
-rw-r--r--content_scripts/mode_key_handler.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/mode_key_handler.coffee b/content_scripts/mode_key_handler.coffee
index 08222d98..0b8145fc 100644
--- a/content_scripts/mode_key_handler.coffee
+++ b/content_scripts/mode_key_handler.coffee
@@ -42,9 +42,9 @@ class KeyHandlerMode extends Mode
@reset()
@suppressEvent
# If the help dialog loses the focus, then Escape should hide it; see point 2 in #2045.
- else if isEscape and HelpDialog?.showing
+ else if isEscape and HelpDialog?.isShowing()
@keydownEvents[event.keyCode] = true
- HelpDialog.hide()
+ HelpDialog.toggle()
@suppressEvent
else if isEscape
@continueBubbling