mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Check for “ “ (the space char)
This commit is contained in:
parent
743135beb4
commit
64869e5a87
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ class Keyboard {
|
|||
keyArg = keyArg[0];
|
||||
}
|
||||
|
||||
// Check for the space character.
|
||||
if (keyArg === ' ') {
|
||||
return 'space';
|
||||
}
|
||||
|
||||
return keyArg.toUpperCase();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue