From 67b9620544ec01935417a86f2816bcdc854c105e Mon Sep 17 00:00:00 2001 From: Anqi Date: Mon, 5 Dec 2022 20:27:12 +0000 Subject: [PATCH] added T hotkey --- src/ui/hotkeys.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ui/hotkeys.js b/src/ui/hotkeys.js index 9bea2793e..150b28cb9 100644 --- a/src/ui/hotkeys.js +++ b/src/ui/hotkeys.js @@ -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(); @@ -120,6 +124,11 @@ export function getHotKeys(hk) { hk.pressS(event); }, }, + KeyT: { + onkeydown() { + hk.pressT(); + }, + }, KeyD: { onkeydown(event) { hk.pressD(event);