TEXT SELECTION

This commit is contained in:
2025-11-22 00:15:02 -05:00
parent 1008f97a52
commit 90f9c13dd7
5 changed files with 51 additions and 13 deletions

View File

@@ -160,6 +160,11 @@ impl Client {
}
self.run_event(sel, Edited, ());
}
TextInputResult::Copy(text) => {
if let Err(err) = self.clipboard.set_text(text) {
eprintln!("failed to copy text to clipboard: {err}")
}
}
TextInputResult::Used => {
self.run_event(sel, Edited, ());
}