diff --git a/parley/src/editor/selection.rs b/parley/src/editor/selection.rs index 4d3f60a8..684ec103 100644 --- a/parley/src/editor/selection.rs +++ b/parley/src/editor/selection.rs @@ -138,6 +138,7 @@ impl TextWithSelection { self.selection = Some(Selection::caret(offset, Affinity::Downstream)); }; + self.needs_selection_update = true; } } Handled::Yes @@ -156,6 +157,7 @@ impl TextWithSelection { } else if let Some(o) = t.next_grapheme_offset(selection.active) { self.selection = Some(Selection::caret(o, Affinity::Upstream)); }; + self.needs_selection_update = true; } } Handled::Yes