From 9a83ccc49e30af30f39fc3fa15208993c28fa520 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 12 Mar 2016 14:52:31 +0000 Subject: 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). --- content_scripts/link_hints.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'content_scripts') 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 -- cgit v1.2.3