From 632c97eb3485f05c7f813deea788512156116fbb Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 3 Mar 2016 05:54:58 +0000 Subject: 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. --- 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 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) -> -- cgit v1.2.3