You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Huh, this changed in #1583 when a default macOS menu was added, because as it registers the Quit {process_name}, it also registers the key combination for it. It was even pointed out here: #1583 (comment), sorry it slipped past the changelog!
An alternative to the proposed PR would be to use the stop: selector in menu.rs instead of terminate:; this would allow run_return to resume, if I'm not mistaken? And the teardown code after [app run] would be called properly.
Activity
winit: don't explicitly handle Cmd-Q and Alt-F4
winit: don't explicitly handle Cmd-Q and Alt-F4
winit: don't explicitly handle Cmd-Q and Alt-F4 (#881)
tinaun commentedon Nov 25, 2021
I think this can be fixed by overriding
applicationWillTerminate:to send a LoopDestroyed event in winits appdelegatemadsmtm commentedon Nov 26, 2021
Huh, this changed in #1583 when a default macOS menu was added, because as it registers the
Quit {process_name}, it also registers the key combination for it. It was even pointed out here: #1583 (comment), sorry it slipped past the changelog!madsmtm commentedon Nov 26, 2021
An alternative to the proposed PR would be to use the
stop:selector inmenu.rsinstead ofterminate:; this would allowrun_returnto resume, if I'm not mistaken? And the teardown code after[app run]would be called properly.Though I don't really have a preference
macOS: Fix emitting Event::LoopDestroyed on CMD+Q / Quit