From 06ecc5535c476aa9bce30e459339a092e90b7085 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Sat, 6 Jun 2026 11:54:48 -0500 Subject: [PATCH] fix(desktop): rebind default-profile hotkey off macOS-reserved cmd+` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOS reserves cmd+` for window cycling, so the keydown never reached the renderer and profile.default never fired. Move it to ⌥⌘0 — the "0 slot" of the ⌘⌥-digit profile range — which is unreserved and fits the scheme. --- apps/desktop/src/lib/keybinds/actions.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/desktop/src/lib/keybinds/actions.ts b/apps/desktop/src/lib/keybinds/actions.ts index 527b3e89fcf..c3ff32fc250 100644 --- a/apps/desktop/src/lib/keybinds/actions.ts +++ b/apps/desktop/src/lib/keybinds/actions.ts @@ -28,9 +28,10 @@ export interface KeybindActionMeta { defaults: readonly string[] } -// Positional switch slots for *named* profiles. The default profile lives on ⌘` -// (see `profile.default`), freeing ⌘1…⌘9 for profiles 1-9, then ⌘⌥1…⌘⌥9 for -// 10-18 — 18 native slots, none touching ⌘0 (reset zoom). +// Positional switch slots for *named* profiles. The default profile lives on ⌥⌘0 +// (see `profile.default`) — the "0 slot" of the ⌘⌥-digit range — freeing ⌘1…⌘9 +// for profiles 1-9 and ⌘⌥1…⌘⌥9 for 10-18. ⌘` is unusable (macOS reserves it for +// window cycling) and ⌘0 is reset-zoom, so both are avoided. export const PROFILE_SLOT_COUNT = 18 function comboForSlot(slot: number): string { @@ -49,7 +50,7 @@ export const KEYBIND_ACTIONS: readonly KeybindActionMeta[] = [ { id: 'composer.modelPicker', category: 'composer', defaults: [] }, // ── Profiles ───────────────────────────────────────────────────────────── - { id: 'profile.default', category: 'profiles', defaults: ['mod+`'] }, + { id: 'profile.default', category: 'profiles', defaults: ['mod+alt+0'] }, ...PROFILE_SWITCH_ACTIONS, { id: 'profile.next', category: 'profiles', defaults: ['mod+shift+]'] }, { id: 'profile.prev', category: 'profiles', defaults: ['mod+shift+['] },