Repository navigation
fix(gui): quit with cmd+q on macos - #49
Conversation
|
No actionable comments were generated in the recent review. This PR adds a
WalkthroughThe app now registers a Quit action, binds cmd-q to it, and adds a Quit item to the OpenVector menu. On macOS, startup installs this menu after registering bundled fonts. A test checks that cmd-q dispatches one Quit action and that the first menu item is “Quit OpenVector.” Sequence Diagram(s)sequenceDiagram
participant macOS
participant main.rs
participant install_app_menu
participant App
macOS->>main.rs: Start application on macOS
main.rs->>install_app_menu: Call after font registration
install_app_menu->>App: Register Quit action and cmd-q binding
install_app_menu->>App: Install OpenVector menu with Quit item
macOS->>App: Send cmd-q
App->>App: Dispatch Quit action
Severity of issue fixed: Low Merge Risk:
|
Summary
cmd+q did nothing in the macos app (#48). gpui ships no default quit, so the app never had one.
cmdis super on linux and windows, and super+q shouldn't quit there. closing the last window still quits everywhere.Fixes #48
Evidence
cmd_q_dispatches_quit: cmd+q from the app window reaches the quit action and the app menu lists it.cargo test -p openvector-gui --lib cmd_qpassed.bash tools/check-source.shpassed.Merge Danger
Door Two-way
Blast Radius macOS desktop app menu and shortcuts
Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved