Fix issue with keydown for space.

KeyEvent#character contained the wrong charCode (0)
This commit is contained in:
Jürg Lehni 2013-11-28 16:49:05 +01:00
parent d9eaa3f631
commit bfd65fe75d

View file

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