Add clipboard support for text inputs

This commit is contained in:
Erik Kundt
2023-08-11 11:45:06 +02:00
parent 81966a4aca
commit 2dfc0a9e4d
4 changed files with 386 additions and 3 deletions
+1
View File
@@ -21,6 +21,7 @@ pub struct TextInput {
impl TextInput {
pub const PROP_MULTILINE: &str = "multiline";
pub const CMD_NEWLINE: &str = tui_realm_textarea::TEXTAREA_CMD_NEWLINE;
pub const CMD_PASTE: &str = tui_realm_textarea::TEXTAREA_CMD_PASTE;
pub fn new(theme: Theme, title: &str) -> Self {
let input = TextArea::default()