From 9a22be04cb0b5cef3dcffea84cbbd21565906bd9 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 2 Mar 2016 11:44:18 +0000 Subject: 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. --- content_scripts/mode_key_handler.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') 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) -> -- cgit v1.2.3