diff --git a/CHANGELOG.md b/CHANGELOG.md index b884d3110c..062e5d88f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ And please only add new entries to the top of this list, right below the `# Unre # Unreleased +- On macOS, fix `key_up` beind ignored when `Ime` is disabled. + # 0.28.4 - On macOS, fix empty marked text blocking regular input. diff --git a/src/platform_impl/macos/view.rs b/src/platform_impl/macos/view.rs index 365f151e0d..ef03dd7a33 100644 --- a/src/platform_impl/macos/view.rs +++ b/src/platform_impl/macos/view.rs @@ -549,7 +549,7 @@ declare_class!( self.update_potentially_stale_modifiers(event); // 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)] self.queue_event(WindowEvent::KeyboardInput { device_id: DEVICE_ID,