diff options
| author | Stephen Blott | 2015-01-13 10:07:26 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-13 10:07:26 +0000 |
| commit | 1191d73c6fea65bcd4ceec807458e81a1a940047 (patch) | |
| tree | c522c845f317f0fb725ceb121773e89219a52d11 /content_scripts/mode.coffee | |
| parent | 7684019cb5d5c1d0ac5d7216653613220b4fd8d9 (diff) | |
| download | vimium-1191d73c6fea65bcd4ceec807458e81a1a940047.tar.bz2 | |
Modes; temporary commit.
Diffstat (limited to 'content_scripts/mode.coffee')
| -rw-r--r-- | content_scripts/mode.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index d06f5eae..84b76301 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -101,7 +101,9 @@ class Mode if @options.exitOnClick @push _name: "mode-#{@id}/exitOnClick" - "click": (event) => @alwaysContinueBubbling => @exit() + "click": (event) => @alwaysContinueBubbling => + @clickEvent = event + @exit() # If @options.trackState is truthy, then the mode mainatins the current state in @enabled and @passKeys, # and calls @registerStateChange() (if defined) whenever the state changes. |
