From 0090c9a5e3f054a7527febd73a67ff081a17618f Mon Sep 17 00:00:00 2001 From: TheCodeTherapy Date: Wed, 19 Jul 2023 18:43:49 +0100 Subject: [PATCH] fixes keys cleanup method according to code-review --- packages/core/src/input/KeyInputManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/input/KeyInputManager.ts b/packages/core/src/input/KeyInputManager.ts index bfc7055..29f72f2 100644 --- a/packages/core/src/input/KeyInputManager.ts +++ b/packages/core/src/input/KeyInputManager.ts @@ -8,7 +8,7 @@ export class KeyInputManager { } private handleUnfocus(_event: FocusEvent): void { - this.keys = new Map(); + this.keys.clear(); } private onKeyDown(event: KeyboardEvent): void {