feat: HasSelectableText impl to TextEditor

This commit is contained in:
Hojjat 2026-05-19 19:36:22 -06:00 committed by Michael Murphy
parent 2e1e4bd6e0
commit a7ca336eb4
3 changed files with 131 additions and 1 deletions

View file

@ -336,6 +336,10 @@ impl editor::Editor for Editor {
}
}
Action::ClearSelection => {
editor.set_selection(cosmic_text::Selection::None);
}
// Editing events
Action::Edit(edit) => {
let topmost_line_before_edit = editor