Skip to content

Commit

Permalink
macOS: Fix emitting Event::LoopDestroyed on CMD+Q / Quit
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Mar 21, 2022
1 parent e22c76b commit 208e433
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre

# Unreleased

- macOS: Fix emitting `Event::LoopDestroyed` on CMD+Q.
- macOS: Remove the need to call `set_ime_position` after moving the window.
- Added `Window::is_visible`.
- Added `Window::is_resizable`.
Expand Down
5 changes: 4 additions & 1 deletion src/platform_impl/macos/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ pub fn initialize() {
let quit_item_title = quit_item_prefix.stringByAppendingString_(process_name);
let quit_item = menu_item(
quit_item_title,
selector("terminate:"),
// Ususally `terminate:` would be used, however, we would probably
// like `run_return` to be able to keep going after the application
// was quit.
selector("stop:"),
Some(KeyEquivalent {
key: "q",
masks: None,
Expand Down

0 comments on commit 208e433

Please sign in to comment.