Skip to content

Commit f29892b

Browse files
committed
Fixed addKeys(string) whitespace issue
1 parent 1f85920 commit f29892b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/input/keyboard/KeyboardPlugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ 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 current_key = keys[i].trim();
348+
if (current_key) output[current_key] = this.addKey(current_key);
348349
}
349350
}
350351
else

0 commit comments

Comments
 (0)