diff options
| author | Stephen Blott | 2015-04-27 16:49:04 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-04-27 16:49:04 +0100 |
| commit | 061e99f895e5655d351ad1585af028a12abf3ec0 (patch) | |
| tree | efed5a51747f1f77314158bb29057d412da22f37 | |
| parent | 1aef9829ef1bef6ac7d975badfe0204f6c2530b4 (diff) | |
| download | vimium-061e99f895e5655d351ad1585af028a12abf3ec0.tar.bz2 | |
Enable grab-back-focus after web navigation.
Fixes #1588. (??)
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 5 |
1 files changed, 4 insertions, 1 deletions
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) -> |
