diff options
| author | Stephen Blott | 2016-03-03 05:54:58 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-05 05:40:35 +0000 |
| commit | 632c97eb3485f05c7f813deea788512156116fbb (patch) | |
| tree | 7c1d80b782c2ada66dc45eb9a5905940651484fc | |
| parent | 9a22be04cb0b5cef3dcffea84cbbd21565906bd9 (diff) | |
| download | vimium-632c97eb3485f05c7f813deea788512156116fbb.tar.bz2 | |
Key bindings; reset on passKeys change.
Normal mode updates the pass keys every time the frame changes (so, also
every time we change tab). Here, we reset the key state too. Resetting
the key state makes sense when, for example, the user has changed the
pass keys. However, it also changes a status quo/master behaviour:
- `g`, change-tab-with-mouse, change-back, `g` -- previously this
scrolled to top; now it does not.
| -rw-r--r-- | content_scripts/mode_key_handler.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode_key_handler.coffee b/content_scripts/mode_key_handler.coffee index 118cf70d..fdcac430 100644 --- a/content_scripts/mode_key_handler.coffee +++ b/content_scripts/mode_key_handler.coffee @@ -14,7 +14,7 @@ class KeyHandlerMode extends Mode keydownEvents: {} setKeyMapping: (@keyMapping) -> @reset() - setPassKeys: (@passKeys) -> + setPassKeys: (@passKeys) -> @reset() # Reset the key state, optionally retaining the count provided. reset: (@countPrefix = 0) -> |
