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

Command-Q does not quit program on macOS #649

Closed
alterae opened this issue Sep 17, 2023 · 1 comment · Fixed by not-fl3/miniquad#464
Closed

Command-Q does not quit program on macOS #649

alterae opened this issue Sep 17, 2023 · 1 comment · Fixed by not-fl3/miniquad#464
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@alterae
Copy link

alterae commented Sep 17, 2023

On macOS, the customary shortcut to quit any application is Command-Q (LeftSuper-Q using macroquad KeyCodes). However, this does not work in macroquad applications.

While it is trivial to implement by hand, it is still a bit annoying and mac users generally expect Command-Q to work on all platforms.

If this could be implemented in the engine, that would be excellent.

@markmurphydev
Copy link

I've submitted not-fl3/miniquad#464 to add a menu bar entry with a "quit application" shortcut. This is the normal way to implement the command-q shortcut on osx, and lets you rebind it in system keyboard settings.

Note that on osx on master, clicking on a menu bar item currently freezes the window. This is due to not-fl3/miniquad#455.

The Winit crate also adds by default the "About application", "Services", "Hide application", "Hide others", and "Show all" menu items. These are also standard Mac menu items, with system-default implementations. I can add them if we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants