mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 02:25:40 +00:00
Merge pull request #71 from NewHappyRabbit/fix-1/2-hotkeys
Added preventDefault to 1/2 hotkeys
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user