Check for “ “ (the space char)

This commit is contained in:
Eric Rosenbaum 2018-04-30 17:05:33 -04:00
parent 743135beb4
commit 64869e5a87

View file

@ -90,6 +90,11 @@ class Keyboard {
keyArg = keyArg[0];
}
// Check for the space character.
if (keyArg === ' ') {
return 'space';
}
return keyArg.toUpperCase();
}