diff options
author | 2023-01-28 20:12:33 +0100 | |
---|---|---|
committer | 2023-01-28 20:12:33 +0100 | |
commit | dc6f9f432abaed010ec946d5fdd1dcd70c3bd974 (patch) | |
tree | 1d52b7b3620455a13d5e278d8dd7123dd0b2dff7 /native/src/widget | |
parent | b9028b26193f6dc4a93dfd53bda8e23601b95944 (diff) | |
parent | d2008eed47ced61937fafbec19978291397389e0 (diff) | |
download | iced-dc6f9f432abaed010ec946d5fdd1dcd70c3bd974.tar.gz iced-dc6f9f432abaed010ec946d5fdd1dcd70c3bd974.tar.bz2 iced-dc6f9f432abaed010ec946d5fdd1dcd70c3bd974.zip |
Merge pull request #1678 from frey/fix/mapped_operations_missing
Mapped operations is missing text_input()
Diffstat (limited to 'native/src/widget')
-rw-r--r-- | native/src/widget/action.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/native/src/widget/action.rs b/native/src/widget/action.rs index 1e21ff38..3f1b6b6c 100644 --- a/native/src/widget/action.rs +++ b/native/src/widget/action.rs @@ -1,4 +1,6 @@ -use crate::widget::operation::{self, Focusable, Operation, Scrollable}; +use crate::widget::operation::{ + self, Focusable, Operation, Scrollable, TextInput, +}; use crate::widget::Id; use iced_futures::MaybeSend; @@ -86,6 +88,14 @@ where self.operation.focusable(state, id); } + fn text_input( + &mut self, + state: &mut dyn TextInput, + id: Option<&Id>, + ) { + self.operation.text_input(state, id); + } + fn custom(&mut self, state: &mut dyn Any, id: Option<&Id>) { self.operation.custom(state, id); } |