2
0
Fork 0
mirror of https://github.com/photonstorm/phaser synced 2025-03-05 15:58:11 +00:00
This commit is contained in:
Richard Davey 2018-08-31 13:27:28 +01:00
commit 4794909e44

View file

@ -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