diff options
author | Tiyen <[email protected]> | 2024-11-14 20:05:50 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-14 15:35:50 +0100 |
commit | de546aefec922ca7d35014007420d3ab41c325d7 (patch) | |
tree | 58ae7c56e5e0f49584be9b5d620d6983d5b787d7 | |
parent | ed489448f59da112da20d396c45125b946b66fbf (diff) | |
download | monkeytype-de546aefec922ca7d35014007420d3ab41c325d7.tar.gz monkeytype-de546aefec922ca7d35014007420d3ab41c325d7.zip |
fix(key tips): "off" shown instead of "tab + enter" when quick restart is disabled (@mrtianjin829) (#6036)
-rw-r--r-- | frontend/src/ts/ui.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/ts/ui.ts b/frontend/src/ts/ui.ts index 6057945a1..d2fc91a23 100644 --- a/frontend/src/ts/ui.ts +++ b/frontend/src/ts/ui.ts @@ -47,7 +47,11 @@ function updateKeytips(): void { const commandKey = Config.quickRestart === "esc" ? "tab" : "esc"; $("footer .keyTips").html(` - <key>${Config.quickRestart}</key> - restart test<br> + ${ + Config.quickRestart == "off" + ? "<key>tab</key> + <key>enter</key>" + : `<key>${Config.quickRestart}</key>` + } - restart test<br> <key>${commandKey}</key> or <key>${modifierKey}</key>+<key>shift</key>+<key>p</key> - command line`); } |