summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
Diffstat (limited to 'native')
-rw-r--r--native/src/clipboard.rs4
-rw-r--r--native/src/widget/text_input.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs
index ecdccabf..3eeb184d 100644
--- a/native/src/clipboard.rs
+++ b/native/src/clipboard.rs
@@ -1,6 +1,6 @@
/// A buffer for short-term storage and transfer within and between
/// applications.
pub trait Clipboard {
- /// Returns the current content of the [`Clipboard`] as text.
- fn content(&self) -> Option<String>;
+ /// Reads the current content of the [`Clipboard`] as text.
+ fn read(&self) -> Option<String>;
}
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 2fd9cec1..4c38b1a3 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -509,7 +509,7 @@ where
Some(content) => content,
None => {
let content: String = clipboard
- .content()
+ .read()
.unwrap_or(String::new())
.chars()
.filter(|c| !c.is_control())