diff --git a/src/platform_impl/macos/view.rs b/src/platform_impl/macos/view.rs index b8e9c373e0..07b1c531c6 100644 --- a/src/platform_impl/macos/view.rs +++ b/src/platform_impl/macos/view.rs @@ -719,7 +719,7 @@ extern "C" fn key_down(this: &Object, _sel: Sel, event: id) { virtual_keycode, modifiers: event_mods(event), }, - is_synthetic: false, + is_synthetic: state.is_ime_activated, }, }; @@ -772,7 +772,7 @@ extern "C" fn key_up(this: &Object, _sel: Sel, event: id) { virtual_keycode, modifiers: event_mods(event), }, - is_synthetic: false, + is_synthetic: state.is_ime_activated, }, }; @@ -891,7 +891,7 @@ extern "C" fn cancel_operation(this: &Object, _sel: Sel, _sender: id) { virtual_keycode, modifiers: event_mods(event), }, - is_synthetic: false, + is_synthetic: state.is_ime_activated, }, };