From bfd65fe75d07877c5413d081fa22bde36622f216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 28 Nov 2013 16:49:05 +0100 Subject: [PATCH] Fix issue with keydown for space. KeyEvent#character contained the wrong charCode (0) --- src/ui/Key.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Key.js b/src/ui/Key.js index ef022f6d..8a67e07a 100644 --- a/src/ui/Key.js +++ b/src/ui/Key.js @@ -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 {