mirror of
https://github.com/storytold/winit.git
synced 2026-11-29 17:55:16 +01:00
On macOS, fix key_up being ignored without IME
Fixes: d15feb5cfa (On macOS, fix empty marked text)
This commit is contained in:
1 parent
ad52c72e41
commit
25c4e2e451
2 files changed
+2
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user