Skip to content

Commit 4794909

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents ecae9d0 + 751f362 commit 4794909

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/input/keyboard/KeyboardPlugin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,11 @@ var KeyboardPlugin = new Class({
344344

345345
for (var i = 0; i < keys.length; i++)
346346
{
347-
output[keys[i]] = this.addKey(keys[i]);
347+
var currentKey = keys[i].trim();
348+
if (currentKey)
349+
{
350+
output[currentKey] = this.addKey(currentKey);
351+
}
348352
}
349353
}
350354
else

0 commit comments

Comments
 (0)