diff options
| author | Stephen Blott | 2015-01-27 11:32:53 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-27 14:14:48 +0000 |
| commit | 9d97ce8dab7672d7d1846f7cbe4d22af80c91b01 (patch) | |
| tree | def31cb9a044df385e1722164a68fe15ed39486d /content_scripts/mode_find.coffee | |
| parent | 8e9c554d81df415632a8c995a8a8789e0985d0e6 (diff) | |
| download | vimium-9d97ce8dab7672d7d1846f7cbe4d22af80c91b01.tar.bz2 | |
Visual/edit modes: self code review.
Diffstat (limited to 'content_scripts/mode_find.coffee')
| -rw-r--r-- | content_scripts/mode_find.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee index dff63949..33a7dc4f 100644 --- a/content_scripts/mode_find.coffee +++ b/content_scripts/mode_find.coffee @@ -35,7 +35,8 @@ class PostFindMode extends SuppressPrintable name: "post-find" # We show a "?" badge, but only while an Escape activates insert mode. badge: "?" - singleton: PostFindMode + # Important. PostFindMode shares a singleton with suspendedEditmode (see the exit() method of EditMode). + singleton: element exitOnBlur: element exitOnClick: true keydown: (event) -> InsertMode.suppressEvent event # Always truthy, so always continues bubbling. |
