diff options
| author | Stephen Blott | 2015-01-19 13:42:31 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-19 17:24:52 +0000 |
| commit | bbfcacbd944527ef403dd04f2b36ec0f74934d16 (patch) | |
| tree | 51bce006383f3fc60d22fd12c31f802dc483dcac /content_scripts/mode_passkeys.coffee | |
| parent | 26ff39d355f7d405eeb1b1394afbb677fa01e4a2 (diff) | |
| download | vimium-bbfcacbd944527ef403dd04f2b36ec0f74934d16.tar.bz2 | |
Rework DOM tests (integrate keyboard-event handling).
This uses phantomjs to generate keyboard events. So the events are
propagated through the regular event listeners. So we're testing the
full keyboard-event flow.
Diffstat (limited to 'content_scripts/mode_passkeys.coffee')
| -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. |
