mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix issue with keydown for space.
KeyEvent#character contained the wrong charCode (0)
This commit is contained in:
parent
d9eaa3f631
commit
bfd65fe75d
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ var Key = new function() {
|
|||
modifiers[name] = true;
|
||||
// No char code for special keys, but mark as pressed
|
||||
charCodeMap[code] = 0;
|
||||
handleKey(true, code, null, event);
|
||||
handleKey(true, code, code, event);
|
||||
// Do not set downCode as we handled it already. Space would
|
||||
// be handled twice otherwise, once here, once in keypress.
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue