From 23dd898daf1e2e866475b71ef6cc0e9b45176a73 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Wed, 2 May 2018 09:52:04 -0400 Subject: [PATCH] =?UTF-8?q?Use=20obj.map=20(can=E2=80=99t=20use=20obj.valu?= =?UTF-8?q?es)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/io/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/keyboard.js b/src/io/keyboard.js index 10b1d8fca..124d9ed6f 100644 --- a/src/io/keyboard.js +++ b/src/io/keyboard.js @@ -85,7 +85,7 @@ class Keyboard { keyArg = Cast.toString(keyArg); // 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)) { return keyArg; }