diff options
| author | Stephen Blott | 2016-03-12 14:52:31 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-28 05:44:54 +0100 |
| commit | 9a83ccc49e30af30f39fc3fa15208993c28fa520 (patch) | |
| tree | b7d56e6bb2a619ff19d982c12cddeb294f14d416 /content_scripts/link_hints.coffee | |
| parent | 9ca85dde948e1e4983f24c2cc6c7ba3d200bcc42 (diff) | |
| download | vimium-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.coffee | 1 |
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 |
