aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/link_hints.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 083e214e..f2b9cd0f 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -164,7 +164,6 @@ class LinkHintsMode
keydown: @onKeyDownInMode.bind this
keypress: @onKeyPressInMode.bind this
- @setIndicator()
@hintMode.onExit (event) =>
if event?.type == "click" or (event?.type == "keydown" and
(KeyboardUtils.isEscape(event) or event.keyCode in [keyCodes.backspace, keyCodes.deleteKey]))
@@ -175,6 +174,8 @@ class LinkHintsMode
@hintMarkerContainingDiv = DomUtils.addElementList (marker for marker in @hintMarkers when marker.isLocalMarker),
id: "vimiumHintMarkerContainer", className: "vimiumReset"
+ @setIndicator()
+
setOpenLinkMode: (@mode, shouldPropagateToOtherFrames = true) ->
if shouldPropagateToOtherFrames
HintCoordinator.sendMessage "setOpenLinkMode", modeIndex: availableModes.indexOf @mode