mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
Use obj.map (can’t use obj.values)
This commit is contained in:
parent
85ac307261
commit
23dd898daf
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class Keyboard {
|
||||||
keyArg = Cast.toString(keyArg);
|
keyArg = Cast.toString(keyArg);
|
||||||
|
|
||||||
// If the arg matches a special key name, return it.
|
// If the arg matches a special key name, return it.
|
||||||
const keyNameList = Object.values(Keyboard.KEY_NAMES);
|
const keyNameList = Object.keys(Keyboard.KEY_NAMES).map(name => Keyboard.KEY_NAMES[name]);
|
||||||
if (keyNameList.includes(keyArg)) {
|
if (keyNameList.includes(keyArg)) {
|
||||||
return keyArg;
|
return keyArg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue