mirror of
https://github.com/photonstorm/phaser
synced 2025-03-05 15:58:11 +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++)
|
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
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue