-
-
Notifications
You must be signed in to change notification settings - Fork 480
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 to quit on Mac OS X #468
Comments
For the moment the only way to destroy the window is to destroy the I don't know if it makes sense to add |
@tomaka The ⌘Q behavior is defined by the shortcut for Right now glutin doesn't have anything of the sort, and while it could be added programmatically, it would also be hardcoded. Alternatively it could use a |
Added in this branch, but I'm not keen on merging since there's still the issue with how we process events on osx (currently it blocks ⌘Q and similar key combinations). |
Closing for rust-windowing/winit#41 |
Most native Cocoa apps will quit when you press Command-Q (or whatever keyboard shortcut you have set globally I think).
I'm not an expert in windowing systems for Mac OS X so I ask if it possible to implement this functionality with glutin as well. I understand I should be able to implement this myself in application code but I believe it would be better as part of
glutin
as it is a system-wide convention.Also, when trying to implement this myself, I couldn't find a way to manually close the glutin window. I have a loop like so:
And it will exit when I click the close button, but I can't find a function like
window.close
orwindow.set_closed
anywhere where I can manually close the window. What is the recommended way of doing this?The text was updated successfully, but these errors were encountered: