Trim the keycodes

This commit is contained in:
Richard Davey 2019-01-29 23:21:34 +00:00
parent 21c06668fb
commit fb0c4af780

View file

@ -329,7 +329,7 @@ var KeyboardManager = new Class({
if (typeof code === 'string')
{
code = KeyCodes[code.toUpperCase()];
code = KeyCodes[code.trim().toUpperCase()];
}
if (captures.indexOf(code) === -1)