diff options
| author | Stephen Blott | 2016-03-02 11:44:18 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-05 05:40:35 +0000 |
| commit | 9a22be04cb0b5cef3dcffea84cbbd21565906bd9 (patch) | |
| tree | 248b5e18bf9b98012d0a1d06ad75b08ab77c40d7 | |
| parent | a049281ea12e2d31813277ef7777815175881f6b (diff) | |
| download | vimium-9a22be04cb0b5cef3dcffea84cbbd21565906bd9.tar.bz2 | |
Key bindings; do not reset on passKeys change.
This reinstates the legacy behaviour in the following case:
- `g`
- change tab
- change back to the original tab
- `g`
- ..... which scrolls to top.
It is not obvious that this is the best behaviour, but it is the legacy
behaviour, and it certainly isn't unreasonable.
| -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 fdcac430..118cf70d 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) -> @reset() + setPassKeys: (@passKeys) -> # Reset the key state, optionally retaining the count provided. reset: (@countPrefix = 0) -> |
