Skip to content

Add cmd-q shortcut on macOS#270

Merged
feschber merged 1 commit intofeschber:mainfrom
mrled:add-macos-cmd-q
Feb 28, 2025
Merged

Add cmd-q shortcut on macOS#270
feschber merged 1 commit intofeschber:mainfrom
mrled:add-macos-cmd-q

Conversation

@mrled
Copy link
Copy Markdown
Contributor

@mrled mrled commented Feb 21, 2025

Wire up the Quit action to the File menu on macOS.

This enables the typical Cmd-Q shortcut for quitting the app, which is a standard on macOS. To do this, I created a global menu, which macOS uses automatically. (Actually, there is always a menu bar on macOS no matter what. This change enables the Quit menu item, which exists but is grayed out otherwise.) The menu doesn't appear on other platforms.

If this is a wrongheaded way to do this, I'd be happy to change it, and not offended if you just need to close.

@feschber
Copy link
Copy Markdown
Owner

Looks good to me ;)

@feschber feschber merged commit 5d1745a into feschber:main Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants