fix(app): focus shortcut ⌃F → ⌥⌘F (#87)

⌃F shadowed the editor's Emacs caret-forward binding (menu key
equivalents beat the responder chain).
This commit is contained in:
AlexKucera committed 2026-10-09 11:44:49 +02:00
1 parent d07d41859a
commit 1bb3b459b1
1 file changed
+3 -2
+3 -2
View File
@@ -98,7 +98,8 @@ struct MuseionApp: App {
// #21: focus mode — beside reading, same posture (system View // #21: focus mode — beside reading, same posture (system View
// menu + shortcut). Transient like reading: no persistence, no // menu + shortcut). Transient like reading: no persistence, no
// Esc exit (rejected at charting) — the toggle is the only way. // Esc exit (rejected at charting) — the toggle is the only way.
// ⌃F (⇧⌘F is taken by a system-wide shortcut on this machine). // ⌥⌘F — ⇧⌘F is taken by a system-wide shortcut on this machine,
// ⌃F shadows the editor's Emacs caret-forward binding.
FocusModeToggle(gate: gate) FocusModeToggle(gate: gate)
} }
// #50: reveal the snapshots folder in Finder (restore = manual // #50: reveal the snapshots folder in Finder (restore = manual
@@ -144,7 +145,7 @@ private struct FocusModeToggle: View {
// even then (trashing the open post while focused must not trap). // even then (trashing the open post while focused must not trap).
let canFocus = gate.isFocused || gate.posts.session != nil || gate.posts.draft != nil let canFocus = gate.isFocused || gate.posts.session != nil || gate.posts.draft != nil
Button("Toggle Focus Mode") { gate.isFocused.toggle() } Button("Toggle Focus Mode") { gate.isFocused.toggle() }
.keyboardShortcut("f", modifiers: .control) .keyboardShortcut("f", modifiers: [.command, .option])
.disabled(!canFocus) .disabled(!canFocus)
} }
} }