Merge pull request #3990 from dhruvyad/master

Fixed addKeys(string) whitespace issue
This commit is contained in:
Richard Davey 2018-08-31 12:16:48 +01:00 committed by GitHub
commit 751f362822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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