Skip to content

Commit

Permalink
Fix menubar focus using Alt on Windows (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 20, 2022
1 parent 92fdf5b commit 2fb15db
Show file tree
Hide file tree
Showing 2 changed files with 6 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

- On Windows, fix focusing menubar when pressing `Alt`.
- On MacOS, made `accepts_first_mouse` configurable.
- Migrated `WindowBuilderExtUnix::with_resize_increments` to `WindowBuilder`.
- Added `Window::resize_increments`/`Window::set_resize_increments` to update resize increments at runtime for X11/macOS.
Expand Down
6 changes: 5 additions & 1 deletion src/platform_impl/windows/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,11 @@ unsafe fn public_window_callback_inner<T: 'static>(
},
});
}
0
if msg == WM_SYSKEYUP {
DefWindowProcW(window, msg, wparam, lparam)
} else {
0
}
}

WM_LBUTTONDOWN => {
Expand Down

0 comments on commit 2fb15db

Please sign in to comment.