Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

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

Sam Sandweissd98280f27b5f
diff --git a/apps/filmcraft/src/native_menu.rs b/apps/filmcraft/src/native_menu.rs
index 49622c731..7ed4c4936 100644
--- a/apps/filmcraft/src/native_menu.rs
+++ b/apps/filmcraft/src/native_menu.rs
@@ -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))