diff --git a/crates/egui/src/widgets/text_edit/builder.rs b/crates/egui/src/widgets/text_edit/builder.rs index 41220ed81ba..15aaa848592 100644 --- a/crates/egui/src/widgets/text_edit/builder.rs +++ b/crates/egui/src/widgets/text_edit/builder.rs @@ -932,6 +932,8 @@ impl TextEdit<'_> { .layer_transform_to_global(ui.layer_id()) .unwrap_or_default(); ui.output_mut(|o| { + let tiny_rect = + Rect::from_min_size(primary_cursor_rect.left_bottom(), Vec2::ZERO); o.ime = Some(crate::output::IMEOutput { purpose: if password { IMEPurpose::Password @@ -939,7 +941,7 @@ impl TextEdit<'_> { IMEPurpose::Normal }, rect: to_global * inner_rect, - cursor_rect: to_global * primary_cursor_rect, + cursor_rect: to_global * tiny_rect, should_interrupt_composition: false, }); });