From de546aefec922ca7d35014007420d3ab41c325d7 Mon Sep 17 00:00:00 2001
From: Tiyen <100748047+mrtianjin829@users.noreply.github.com>
Date: Thu, 14 Nov 2024 20:05:50 +0530
Subject: [PATCH] fix(key tips): "off" shown instead of "tab + enter" when
quick restart is disabled (@mrtianjin829) (#6036)
---
frontend/src/ts/ui.ts | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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(`
- ${Config.quickRestart} - restart test
+ ${
+ Config.quickRestart == "off"
+ ? "tab + enter"
+ : `${Config.quickRestart}`
+ } - restart test
${commandKey} or ${modifierKey}+shift+p - command line`);
}