From c47fe8cc5ecd89d116e47f8a377a512c87e30776 Mon Sep 17 00:00:00 2001 From: NewHappyRabbit <31893343+NewHappyRabbit@users.noreply.github.com> Date: Sat, 22 Feb 2025 04:13:29 +0200 Subject: [PATCH] Added event.preventDefault() to hotkeys 1/2 --- src/client/InputHandler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/InputHandler.ts b/src/client/InputHandler.ts index bdf80997c..b58962b73 100644 --- a/src/client/InputHandler.ts +++ b/src/client/InputHandler.ts @@ -184,10 +184,12 @@ export class InputHandler { } if (e.code === "Digit1") { + e.preventDefault(); this.eventBus.emit(new AttackRatioEvent(-10)); } if (e.code === "Digit2") { + e.preventDefault(); this.eventBus.emit(new AttackRatioEvent(10)); }