diff options
| author | Stephen Blott | 2017-03-22 08:24:19 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2017-03-22 09:43:03 +0000 | 
| commit | f2d27321d96cd31c63abceb3e09bfa97ca13b698 (patch) | |
| tree | 6aed83205eb16209d0e58e1a3fd97309a58ad7b1 /lib/utils.coffee | |
| parent | a8f44aa35d4a9735637e07b48a3b40654b3f0f65 (diff) | |
| download | vimium-f2d27321d96cd31c63abceb3e09bfa97ca13b698.tar.bz2 | |
Move key handling to keydown and event.key.
- For PDF tabs, we see keydown events but we don't see the corresponding
  keypress events, so this allows us to navigate through PDF tabs with
  J/K.
- This relies on using `event.key` instead of `event.keyIdentifier`
  (which is no longer supported).
- Also move mapkey handling into the keyboard utils.
The effect of all of this is to simplify and unify much of our key
handling.
Fixes #1243 (for tab commands).
There are known places where we can prune a considerable amount of key
handling code.  However, that code is left in place for now in case this
change throws up some unexpected issues.
Diffstat (limited to 'lib/utils.coffee')
0 files changed, 0 insertions, 0 deletions
