ctrl x
This commit is contained in:
@@ -474,6 +474,13 @@ impl<'a> TextEditCtx<'a> {
|
|||||||
return TextInputResult::Copy(content);
|
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" => {
|
"a" => {
|
||||||
if !self.text.buf.lines[0].text().is_empty()
|
if !self.text.buf.lines[0].text().is_empty()
|
||||||
|| self.text.buf.lines.len() > 1
|
|| self.text.buf.lines.len() > 1
|
||||||
|
|||||||
Reference in New Issue
Block a user