Implement more special key lookups in new Key handling code.

Relates to #876.
This commit is contained in:
Jürg Lehni 2015-12-30 08:36:43 +01:00
parent 943c4bba91
commit 511fc12dd4

View file

@ -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: