       name: "find"
       indicator: false
       exitOnClick: true
+
+    HUD.showFindMode()
 
   exit: (event) ->
     super()


class FindMode extends Mode
  constructor: (@options = {}) ->
    if @options.returnToViewport
      @scrollX = window.scrollX
      @scrollY = window.scrollY

# Enters find mode.  Returns the new find-mode instance.
window.enterFindMode = (options = {}) ->
  Marks.setPreviousPosition()
  window.findMode = new FindMode options

window.showHelpDialog = (html, fid) ->
  return if (isShowingHelpDialog || !document.body || fid != frameId)
