Merge pull request #71 from NewHappyRabbit/fix-1/2-hotkeys

Added preventDefault to 1/2 hotkeys
This commit is contained in:
evanpelle
2025-02-22 19:16:20 -08:00
committed by GitHub
+2
View File
@@ -191,10 +191,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));
}