diff options
| author | Stephen Blott | 2016-02-29 06:48:27 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-05 05:40:11 +0000 | 
| commit | 29708b3297a645966f7943682f8f7b8c2a332297 (patch) | |
| tree | 96d17d96eca75bea538d204d18fadc500870f1af /content_scripts/mode.coffee | |
| parent | e4193e2752ee7132ff16a7ba977857f70df2946b (diff) | |
| download | vimium-29708b3297a645966f7943682f8f7b8c2a332297.tar.bz2 | |
Key bindings; refactor passKeys distribution.
It makes more sense to pass the passKeys directly to normalMode.  So, do
so, and remove the trackState mode option - which isn't otherwise being
used.
Diffstat (limited to 'content_scripts/mode.coffee')
| -rw-r--r-- | content_scripts/mode.coffee | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index 3327b58f..205b8288 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -119,14 +119,6 @@ class Mode          @deactivateSingleton @options.singleton          singletons[key] = this -    # If @options.trackState is truthy, then the mode mainatins the current state in @enabled and @passKeys. -    if @options.trackState -      @enabled = false -      @passKeys = "" -      @push -        _name: "mode-#{@id}/registerStateChange" -        registerStateChange: ({ enabled: @enabled, passKeys: @passKeys }) => @continueBubbling -      # If @options.passInitialKeyupEvents is set, then we pass initial non-printable keyup events to the page      # or to other extensions (because the corresponding keydown events were passed).  This is used when      # activating link hints, see #1522. | 
