mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 05:21:31 +11:00
On macOS, fix key_up
being ignored without IME
Fixes: d15feb5cfa
(On macOS, fix empty marked text)
This commit is contained in:
parent
ad52c72e41
commit
25c4e2e451
|
@ -17,6 +17,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
||||||
- On Wayland, add `Window::drag_resize_window` method.
|
- On Wayland, add `Window::drag_resize_window` method.
|
||||||
- On Wayland, drop `WINIT_WAYLAND_CSD_THEME` variable.
|
- On Wayland, drop `WINIT_WAYLAND_CSD_THEME` variable.
|
||||||
- Bump MSRV from `1.60` to `1.64`.
|
- Bump MSRV from `1.60` to `1.64`.
|
||||||
|
- On macOS, fix `key_up` beind ignored when `Ime` is disabled.
|
||||||
|
|
||||||
# 0.28.4
|
# 0.28.4
|
||||||
|
|
||||||
|
|
|
@ -549,7 +549,7 @@ declare_class!(
|
||||||
self.update_potentially_stale_modifiers(event);
|
self.update_potentially_stale_modifiers(event);
|
||||||
|
|
||||||
// We want to send keyboard input when we are currently in the ground state.
|
// We want to send keyboard input when we are currently in the ground state.
|
||||||
if self.state.ime_state == ImeState::Ground {
|
if matches!(self.state.ime_state, ImeState::Ground | ImeState::Disabled) {
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
self.queue_event(WindowEvent::KeyboardInput {
|
self.queue_event(WindowEvent::KeyboardInput {
|
||||||
device_id: DEVICE_ID,
|
device_id: DEVICE_ID,
|
||||||
|
|
Loading…
Reference in a new issue