mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Implement more special key lookups in new Key handling code.
Relates to #876.
This commit is contained in:
parent
943c4bba91
commit
511fc12dd4
1 changed files with 4 additions and 2 deletions
|
@ -19,10 +19,12 @@ var Key = new function() {
|
|||
// Unify different key identifier naming schemes, e.g. on Gecko, IE:
|
||||
'\t': 'tab',
|
||||
' ': 'space',
|
||||
'\b': 'backspace',
|
||||
'\x7f': 'delete',
|
||||
'Spacebar': 'space',
|
||||
'Win': 'meta',
|
||||
'Del': 'delete',
|
||||
'Esc': 'escape',
|
||||
'Win': 'meta',
|
||||
'Esc': 'escape'
|
||||
},
|
||||
|
||||
// To find corresponding characters for special keys in keydown events:
|
||||
|
|
Loading…
Reference in a new issue