diff options
Diffstat (limited to '')
| -rw-r--r-- | src/text.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/text.rs b/src/text.rs index 72bdbf8..433cf60 100644 --- a/src/text.rs +++ b/src/text.rs @@ -26,7 +26,6 @@ pub use text::{Fragment, Highlighter, IntoFragment, Span}; use crate::click; use crate::core::alignment; -use crate::core::clipboard; use crate::core::keyboard::{self, key}; use crate::core::layout; use crate::core::mouse; @@ -381,7 +380,6 @@ where layout: Layout<'_>, cursor: mouse::Cursor, _renderer: &Renderer, - clipboard: &mut dyn core::Clipboard, shell: &mut core::Shell<'_, Message>, viewport: &core::Rectangle, ) { @@ -493,9 +491,8 @@ where if state.keyboard_modifiers.command() && !state.selection.is_empty() => { - clipboard.write( - clipboard::Kind::Standard, - state.selection.text(&state.paragraph), + shell.write_clipboard( + state.selection.text(&state.paragraph).into(), ); shell.capture_event(); |
