mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
fix(desktop): rebind default-profile hotkey off macOS-reserved cmd+`
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.
This commit is contained in:
parent
74c8f51e95
commit
06ecc5535c
1 changed files with 5 additions and 4 deletions
|
|
@ -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+['] },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue