docs(macos): say when the Quit item picks up a remapped shortcut

Review on #2006.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Sam SandweissandClaude Opus 5.5 committed 2026-10-19 10:53:23 -07:00
1 parent 8eb2d43649
commit d98280f27b
1 file changed
+3 -1
+3 -1
View File
@@ -20,7 +20,9 @@ fn accel(s: &str) -> Option<Accelerator> {
}
/// The app menu's Quit item: the `app.quit` command (which asks to save unsaved changes) on its
/// shortcut, Cmd+Q unless remapped in the Keyboard Shortcuts editor.
/// shortcut, Cmd+Q unless remapped in the Keyboard Shortcuts editor. The key equivalent is read
/// once, when the menu bar is built: `app.quit` has no menu path, so it is not in the menu tree the
/// updater receives, and a remap shows on the Quit item after the next launch.
fn quit_item(app: &FilmcraftApp) -> (&'static str, Option<Accelerator>) {
let keys = app.session.shortcuts.primary("app.quit").unwrap_or_else(|| "Cmd+Q".into());
("app.quit", accel(&keys))