From 061e99f895e5655d351ad1585af028a12abf3ec0 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 27 Apr 2015 16:49:04 +0100 Subject: Enable grab-back-focus after web navigation. Fixes #1588. (??) --- content_scripts/vimium_frontend.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index e7aea163..28102527 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -609,7 +609,10 @@ checkIfEnabledForUrl = (frameIsFocused = windowIsFocused()) -> # When we're informed by the background page that a URL in this tab has changed, we check if we have the # correct enabled state (but only if this frame has the focus). checkEnabledAfterURLChange = -> - checkIfEnabledForUrl() if windowIsFocused() + if windowIsFocused() + checkIfEnabledForUrl() + # We also grab back the focus. See #1588. + new GrabBackFocus # Exported to window, but only for DOM tests. window.refreshCompletionKeys = (response) -> -- cgit v1.2.3