aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-03-12 14:52:31 +0000
committerStephen Blott2016-03-28 05:44:54 +0100
commit9a83ccc49e30af30f39fc3fa15208993c28fa520 (patch)
treeb7d56e6bb2a619ff19d982c12cddeb294f14d416 /content_scripts/link_hints.coffee
parent9ca85dde948e1e4983f24c2cc6c7ba3d200bcc42 (diff)
downloadvimium-9a83ccc49e30af30f39fc3fa15208993c28fa520.tar.bz2
Global link hints; focus window for selectable elements.
Because we're running hint modes in multiple frames, we need to ensure the right frame has the focus for selectable elements (inputs).
Diffstat (limited to 'content_scripts/link_hints.coffee')
-rw-r--r--content_scripts/link_hints.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 1a15ded9..8e983ebe 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -464,6 +464,7 @@ class LinkHintsMode extends LinkHintsModeBase
if clickEl?
HintCoordinator.onExit.push =>
if DomUtils.isSelectable clickEl
+ window.focus()
DomUtils.simulateSelect clickEl
else
clickActivator = (modifiers) -> (link) -> DomUtils.simulateClick link, modifiers