mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Trim the keycodes
This commit is contained in:
parent
21c06668fb
commit
fb0c4af780
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ var KeyboardManager = new Class({
|
|||
|
||||
if (typeof code === 'string')
|
||||
{
|
||||
code = KeyCodes[code.toUpperCase()];
|
||||
code = KeyCodes[code.trim().toUpperCase()];
|
||||
}
|
||||
|
||||
if (captures.indexOf(code) === -1)
|
||||
|
|
Loading…
Reference in a new issue