mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-30 02:28:53 +08:00
fix(key tips): "off" shown instead of "tab + enter" when quick restart is disabled (@mrtianjin829) (#6036)
This commit is contained in:
parent
ed489448f5
commit
de546aefec
1 changed files with 5 additions and 1 deletions
|
@ -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`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue