diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2026-02-06 09:52:41 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2026-02-06 09:52:41 +0100 |
| commit | 90a8cf14cab1f9255e3c95f9c32c1845b475bf06 (patch) | |
| tree | 436a42643dd17648b6c111b9108746cbe581af22 /src/text.rs | |
| parent | docs: update changelog (diff) | |
| download | iced_selection-90a8cf14cab1f9255e3c95f9c32c1845b475bf06.tar.gz | |
chore: update as necessary for upstream iced changes (PR#3238)
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(); |
