diff options
| author | Stephen Blott | 2015-01-19 12:08:23 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-19 12:08:23 +0000 |
| commit | 8b834fcbd7751a49362a788af2bb4003d33dc9e7 (patch) | |
| tree | f9c26831423be80ed6a728c4640bf2c8363fa306 | |
| parent | ed06688979cbed11ce1fd388acb042d30598036b (diff) | |
| download | vimium-8b834fcbd7751a49362a788af2bb4003d33dc9e7.tar.bz2 | |
Fix bug in mode_passkeys.
Caught this while working on the dom_tests infrastructure. Testing
works!
| -rw-r--r-- | content_scripts/mode_passkeys.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/mode_passkeys.coffee b/content_scripts/mode_passkeys.coffee index 94a7c7ec..64db5447 100644 --- a/content_scripts/mode_passkeys.coffee +++ b/content_scripts/mode_passkeys.coffee @@ -6,7 +6,7 @@ class PassKeysMode extends Mode trackState: true # Maintain @enabled, @passKeys and @keyQueue. keydown: (event) => @handleKeyChar KeyboardUtils.getKeyChar event keypress: (event) => @handleKeyChar String.fromCharCode event.charCode - keyup: (event) => @handleKeyChar String.fromCharCode event.charCode + keyup: (event) => @handleKeyChar KeyboardUtils.getKeyChar event # Keystrokes are *never* considered passKeys if the keyQueue is not empty. So, for example, if 't' is a # passKey, then 'gt' and '99t' will neverthless be handled by Vimium. |
