diff options
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/ui_component.coffee | 2 | ||||
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee index 7422aada..59e4fe41 100644 --- a/content_scripts/ui_component.coffee +++ b/content_scripts/ui_component.coffee @@ -56,7 +56,7 @@ class UIComponent false # We will not be calling sendResponse. # If this frame receives the focus, then hide the UI component. window.addEventListener "focus", (event) => - if event.target == window and @options?.focus and not @options?.allowBlur + if event.target == window and @options?.focus @hide false true # Continue propagating the event. # Set the iframe's port, thereby rendering the UI component ready. diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index a80093f9..68cd402d 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -630,10 +630,8 @@ window.HelpDialog ?= if @isShowing() @helpUI.hide() else - # On the options page, we allow the help dialog to blur, elsewhere we do not. This allows users to view - # the help dialog while typing in the key-mappings input. @helpUI.activate extend request, - name: "activate", focus: true, allowBlur: window.isVimiumOptionsPage ? false + name: "activate", focus: true initializePreDomReady() DomUtils.documentReady initializeOnDomReady |
