aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-03-06 12:37:52 +0000
committerStephen Blott2016-03-06 12:37:54 +0000
commit2c874e3a740f9869dae4134e355451f692421298 (patch)
treee714d7513a74cba9ee92472d7e9a5ac98ad4b309
parent577d43cbc861ef546f8330ebe9ad79c4054a1cfd (diff)
downloadvimium-2c874e3a740f9869dae4134e355451f692421298.tar.bz2
Fix focus issue with UI components.
Problem: - `?`, `o`, `Esc`, `Esc` leaves the focus in the (invisible) help dialog frame, rendering Vimium broken. Since we do @iframeElement.focus() when we activate a UI component, here we do @iframeElement.blur() when hiding such elements. Fixes #2038.
-rw-r--r--content_scripts/ui_component.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index efc16f99..d381cb0f 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -87,6 +87,7 @@ class UIComponent
@onFocus = null
@iframeElement.classList.remove "vimiumUIComponentVisible"
@iframeElement.classList.add "vimiumUIComponentHidden"
+ @iframeElement.blur()
@options = null
@showing = false