Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cmd-q shortcut on macOS #270

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mrled
Copy link
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.

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.

1 participant