Added event.preventDefault() to hotkeys 1/2

This commit is contained in:
NewHappyRabbit
2025-02-22 04:13:29 +02:00
parent 5898f0360c
commit c47fe8cc5e
+2
View File
@@ -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));
}