Skip to content

Commit

Permalink
Merge pull request FreezingMoon#2131 from SapheSab3r/add-score-hotkey
Browse files Browse the repository at this point in the history
Added 'T' hotkey for Score Menu, fixes FreezingMoon#2112
  • Loading branch information
DreadKnight authored Dec 6, 2022
2 parents d26badd + 67b9620 commit 062799f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ui/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export class Hotkeys {
}
}

pressT() {
this.ui.dashopen ? this.ui.closeDash() : this.ui.btnToggleScore.triggerClick();
}

pressD(event) {
if (event.shiftKey) {
this.ui.btnToggleDash.triggerClick();
Expand Down Expand Up @@ -120,6 +124,11 @@ export function getHotKeys(hk) {
hk.pressS(event);
},
},
KeyT: {
onkeydown() {
hk.pressT();
},
},
KeyD: {
onkeydown(event) {
hk.pressD(event);
Expand Down

0 comments on commit 062799f

Please sign in to comment.