mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Fixed addKeys(string) whitespace issue
This commit is contained in:
parent
1f859208ea
commit
f29892b73f
1 changed files with 2 additions and 1 deletions
|
@ -344,7 +344,8 @@ var KeyboardPlugin = new Class({
|
|||
|
||||
for (var i = 0; i < keys.length; i++)
|
||||
{
|
||||
output[keys[i]] = this.addKey(keys[i]);
|
||||
var current_key = keys[i].trim();
|
||||
if (current_key) output[current_key] = this.addKey(current_key);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue