diff options
| author | mrmr1993 | 2015-06-11 15:22:37 +0100 | 
|---|---|---|
| committer | mrmr1993 | 2015-06-11 15:22:37 +0100 | 
| commit | 26a0653318be7bae4254e2e643dcb5ae5e2498e9 (patch) | |
| tree | bfcf3f581efbd31dd2248652e29dc03f7682824b | |
| parent | 34453f7e762a4cf3899d8cd3b83ad72ea974576f (diff) | |
| download | vimium-26a0653318be7bae4254e2e643dcb5ae5e2498e9.tar.bz2 | |
Make exiting FindMode with <esc> work as it should again
This undoes the effect of the breaking refactor in
73f66f25e6b8e5b5b8456074ad4fa79ba1d3ca4d, where PostFindMode was entered
whenever FindMode was exited, instead of only when it was exited with
<enter>.
| -rw-r--r-- | content_scripts/hud.coffee | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index fcd465c8..cd34efe8 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -74,6 +74,8 @@ HUD =      if event.keyCode == keyCodes.enter        handleEnterForFindMode() +      if FindMode.query.hasResults +        postExit = -> new PostFindMode      else if KeyboardUtils.isEscape event        # We don't want FindMode to handle the click events that handleEscapeForFindMode can generate, so we        # wait until the mode is closed before running it. @@ -81,7 +83,6 @@ HUD =      @findMode.exit()      postExit?() -    new PostFindMode if FindMode.query.hasResults    isReady: do ->      ready = false | 
