From 0d17a93d66a523a130e54f0c391de715930613e0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 16 Nov 2017 17:11:40 +0100 Subject: [PATCH] Cleanup keyboard manager --- UI/Input/Keyboard/KeyboardManager.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/UI/Input/Keyboard/KeyboardManager.js b/UI/Input/Keyboard/KeyboardManager.js index ecfe022..26a8c0a 100644 --- a/UI/Input/Keyboard/KeyboardManager.js +++ b/UI/Input/Keyboard/KeyboardManager.js @@ -87,6 +87,7 @@ const actions = this.elements[element], length = actions.length, keyLength = this.down.length; + let match = false; for (let i = 0; i < length; i++) { @@ -95,9 +96,9 @@ match = false; break; - } else { - match = true; - } + } + + match = true; } if (match) {