mirror of
https://github.com/photonstorm/phaser
synced 2025-02-01 06:43:35 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
4794909e44
1 changed files with 5 additions and 1 deletions
|
@ -344,7 +344,11 @@ var KeyboardPlugin = new Class({
|
|||
|
||||
for (var i = 0; i < keys.length; i++)
|
||||
{
|
||||
output[keys[i]] = this.addKey(keys[i]);
|
||||
var currentKey = keys[i].trim();
|
||||
if (currentKey)
|
||||
{
|
||||
output[currentKey] = this.addKey(currentKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue