diff options
Diffstat (limited to 'content_scripts/hud.coffee')
| -rw-r--r-- | content_scripts/hud.coffee | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index bbf7c5e9..fb1fd657 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -25,12 +25,12 @@ HUD =    show: (text) ->      return unless @isReady()      clearTimeout(@_showForDurationTimerId) -    @hudUI.show {name: "show", text} +    @hudUI.activate {name: "show", text}      @tween.fade 1.0, 150    showFindMode: (@findMode = null) ->      return unless @isReady() -    @hudUI.show {name: "showFindMode", text: ""} +    @hudUI.activate name: "showFindMode", text: ""      @tween.fade 1.0, 150    search: (data) -> @@ -50,9 +50,7 @@ HUD =      clearTimeout(@_showForDurationTimerId)      @tween.stop()      if immediate -      unless updateIndicator -        @hudUI.hide() -        @hudUI.postMessage {name: "hide"} +      @hudUI.hide()        Mode.setIndicator() if updateIndicator      else        @tween.fade 0, 150, => @hide true, updateIndicator @@ -60,9 +58,9 @@ HUD =    hideFindMode: (data) ->      @findMode.checkReturnToViewPort() -    # An element element won't receive a focus event if the search landed on it while we were in the HUD -    # iframe. To end up with the correct modes active, we create a focus/blur event manually after refocusing -    # this window. +    # An element won't receive a focus event if the search landed on it while we were in the HUD iframe. To +    # end up with the correct modes active, we create a focus/blur event manually after refocusing this +    # window.      window.focus()      focusNode = DomUtils.getSelectionFocusElement() | 
