aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/hud.coffee
diff options
context:
space:
mode:
authormrmr19932017-04-16 16:07:22 +0100
committermrmr19932017-04-16 16:07:22 +0100
commit1df58a31b95705b2ea065c11af80fb2a667be1ec (patch)
tree0c1587be2c6e019f0555af3a215d24e23809677e /content_scripts/hud.coffee
parent8b37743fa6f924995bb5fce581c4c73ad886257d (diff)
downloadvimium-1df58a31b95705b2ea065c11af80fb2a667be1ec.tar.bz2
Rework FindMode HUD refocusing to not depend directly on the HUD
Diffstat (limited to 'content_scripts/hud.coffee')
-rw-r--r--content_scripts/hud.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee
index 407b90e1..c2170914 100644
--- a/content_scripts/hud.coffee
+++ b/content_scripts/hud.coffee
@@ -35,7 +35,9 @@ HUD =
@tween.fade 1.0, 150
search: (data) ->
- @findMode.findInPlace data.query
+ # NOTE(mrmr1993): On Firefox, window.find moves the window focus away from the HUD. We use postFindFocus
+ # to put it back, so the user can continue typing.
+ @findMode.findInPlace data.query, {"postFindFocus": @hudUI.iframeElement.contentWindow}
# Show the number of matches in the HUD UI.
matchCount = if FindMode.query.parsedQuery.length > 0 then FindMode.query.matchCount else 0