mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:30:43 +00:00
Added event.preventDefault() to hotkeys 1/2
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user