fix(app): focus toggle shortcut ⇧⌘F → ⌃F (#87 follow-up)
⇧⌘F collides with a system-wide shortcut on Alexander's machine — the charting probe only checked NSUserKeyEquivalents and in-app collisions, not global hotkeys. ⌃F is free.
This commit is contained in:
1 parent
b0ab800d3d
commit
9c2926f027
1 file changed
+2
-1
@@ -98,6 +98,7 @@ 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).
|
||||||
FocusModeToggle(gate: gate)
|
FocusModeToggle(gate: gate)
|
||||||
}
|
}
|
||||||
// #50: reveal the snapshots folder in Finder (restore = manual
|
// #50: reveal the snapshots folder in Finder (restore = manual
|
||||||
@@ -143,7 +144,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: [.command, .shift])
|
.keyboardShortcut("f", modifiers: .control)
|
||||||
.disabled(!canFocus)
|
.disabled(!canFocus)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user