From 2c874e3a740f9869dae4134e355451f692421298 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 6 Mar 2016 12:37:52 +0000 Subject: 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. --- content_scripts/ui_component.coffee | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3