Fix menubar focus using Alt on Windows (#2521)

This commit is contained in:
Amr Bashir 2022-10-20 17:59:12 +02:00 committed by GitHub
parent 92fdf5ba85
commit 2fb15dbe8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -8,6 +8,7 @@ And please only add new entries to the top of this list, right below the `# Unre
# Unreleased # Unreleased
- On Windows, fix focusing menubar when pressing `Alt`.
- On MacOS, made `accepts_first_mouse` configurable. - On MacOS, made `accepts_first_mouse` configurable.
- Migrated `WindowBuilderExtUnix::with_resize_increments` to `WindowBuilder`. - Migrated `WindowBuilderExtUnix::with_resize_increments` to `WindowBuilder`.
- Added `Window::resize_increments`/`Window::set_resize_increments` to update resize increments at runtime for X11/macOS. - Added `Window::resize_increments`/`Window::set_resize_increments` to update resize increments at runtime for X11/macOS.

View file

@ -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 => { WM_LBUTTONDOWN => {