Skip to content

Commit

Permalink
added T hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
SapheSab3r committed Dec 5, 2022
1 parent d26badd commit 67b9620
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 67b9620

Please sign in to comment.