Skip to content

Commit

Permalink
Disable IME input on mouse down
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Dec 2, 2024
1 parent 1571b9f commit 093ee94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/gpui/src/platform/mac/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,14 @@ extern "C" fn handle_view_event(this: &Object, _: Sel, native_event: id) {
};

match &event {
PlatformInput::MouseDown(_) => {
drop(lock);
unsafe {
let input_context: id = msg_send![this, inputContext];
msg_send![input_context, handleEvent: native_event]
}
lock = window_state.as_ref().lock();
}
PlatformInput::MouseMove(
event @ MouseMoveEvent {
pressed_button: Some(_),
Expand Down

0 comments on commit 093ee94

Please sign in to comment.