fix(key tips): "off" shown instead of "tab + enter" when quick restart is disabled (@mrtianjin829) (#6036)

This commit is contained in:
Tiyen 2024-11-14 20:05:50 +05:30 committed by GitHub
parent ed489448f5
commit de546aefec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`);
}