Fixed addKeys(string) whitespace issue

This commit is contained in:
Dhruv Yadav 2018-08-30 21:36:36 +05:30
parent 1f859208ea
commit f29892b73f

View file

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