diff --git a/frontend/src/ts/ui.ts b/frontend/src/ts/ui.ts
index df36e252d..762b38c88 100644
--- a/frontend/src/ts/ui.ts
+++ b/frontend/src/ts/ui.ts
@@ -9,28 +9,32 @@ import * as TestUI from "./test/test-ui";
import { get as getActivePage } from "./states/active-page";
export function updateKeytips(): void {
+ const modifierKey = window.navigator.userAgent.toLowerCase().includes("mac")
+ ? "cmd"
+ : "ctrl";
+
if (Config.quickRestart === "esc") {
$(".pageSettings .tip").html(`
tip: You can also change all these settings quickly using the
- command line (ctrl/cmd+shift+p)`);
+ command line (${modifierKey}+shift+p)`);
} else {
$(".pageSettings .tip").html(`
tip: You can also change all these settings quickly using the
- command line (esc or ctrl/cmd+shift+p)`);
+ command line (esc or ${modifierKey}+shift+p)`);
}
if (Config.quickRestart === "esc") {
$("#bottom .keyTips").html(`
esc - restart test
- tab or ctrl/cmd+shift+p - command line`);
+ tab or ${modifierKey}+shift+p - command line`);
} else if (Config.quickRestart === "tab") {
$("#bottom .keyTips").html(`
tab - restart test
- esc or ctrl/cmd+shift+p - command line`);
+ esc or ${modifierKey}+shift+p - command line`);
} else {
$("#bottom .keyTips").html(`
tab + enter - restart test
- esc or ctrl/cmd+shift+p - command line`);
+ esc or ${modifierKey}+shift+p - command line`);
}
}