authorgravatar for 88523594+RakshithBhat03@users.noreply.github.comRakshith Bhat <88523594+RakshithBhat03@users.noreply.github.com> 2026-10-12 06:32:03+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-12 01:02:03+00:00
log821a6d7e0685a5876d8ad12a7a72b23c2becb505
treec8f05dd2298504b8e179cfce17c83edd35127733
parentf570294df8f5a73b31af7ae8f3105dc1efa6d419
signature Signed by PGP key B5690EEEBB952194

fix(web): keybinding settings label Focus URL with a capitalized acronym (#18279)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

2 files changed, 2 insertions(+), 0 deletions(-)

apps/web/src/components/settings/KeybindingsSettings.logic.test.ts+1
...@@ -284,6 +284,7 @@ describe("KeybindingsSettings.logic", () => {...@@ -284,6 +284,7 @@ describe("KeybindingsSettings.logic", () => {
284 expect(commandLabel("commandPalette.toggle")).toBe("Command Palette: Toggle");284 expect(commandLabel("commandPalette.toggle")).toBe("Command Palette: Toggle");
285 expect(commandLabel("themeEditor.toggle")).toBe("Theme Editor: Toggle");285 expect(commandLabel("themeEditor.toggle")).toBe("Theme Editor: Toggle");
286 expect(commandLabel("view.reopenClosed")).toBe("Reopen Closed Tab");286 expect(commandLabel("view.reopenClosed")).toBe("Reopen Closed Tab");
287 expect(commandLabel("preview.focusUrl")).toBe("Preview: Focus URL");
287 expect(commandLabel("script.setup-db.run")).toBe("Run Script: Setup Db");288 expect(commandLabel("script.setup-db.run")).toBe("Run Script: Setup Db");
288 });289 });
289290
apps/web/src/components/settings/KeybindingsSettings.logic.ts+1
...@@ -370,6 +370,7 @@ export function commandLabel(command: KeybindingCommand): string {...@@ -370,6 +370,7 @@ export function commandLabel(command: KeybindingCommand): string {
370 const usagePeriod = WINDOW_OPTIONS.find((option) => option.command === command);370 const usagePeriod = WINDOW_OPTIONS.find((option) => option.command === command);
371 if (usagePeriod) return `Usage: Period: ${usagePeriod.label}`;371 if (usagePeriod) return `Usage: Period: ${usagePeriod.label}`;
372 if (command === "view.reopenClosed") return "Reopen Closed Tab";372 if (command === "view.reopenClosed") return "Reopen Closed Tab";
373 if (command === "preview.focusUrl") return "Preview: Focus URL";
373 const raw = String(command);374 const raw = String(command);
374 if (raw.startsWith("script.") && raw.endsWith(".run")) {375 if (raw.startsWith("script.") && raw.endsWith(".run")) {
375 return `Run Script: ${titleCaseCommandSegment(raw.slice("script.".length, -".run".length))}`;376 return `Run Script: ${titleCaseCommandSegment(raw.slice("script.".length, -".run".length))}`;