This commit is contained in:
2025-11-22 21:15:50 -05:00
parent 84b3bf9078
commit 8e08f67627

View File

@@ -474,6 +474,13 @@ impl<'a> TextEditCtx<'a> {
return TextInputResult::Copy(content);
}
}
"x" => {
if let TextSelection::Span { start, end } = self.text.selection {
let content = self.text.select_content(start, end);
self.clear_span();
return TextInputResult::Copy(content);
}
}
"a" => {
if !self.text.buf.lines[0].text().is_empty()
|| self.text.buf.lines.len() > 1