summaryrefslogtreecommitdiffstats
path: root/native/src/widget
diff options
context:
space:
mode:
authorLibravatar frey <frey@users.noreply.github.com>2023-01-26 20:39:47 -0600
committerLibravatar frey <frey@users.noreply.github.com>2023-01-26 22:02:36 -0600
commitd2008eed47ced61937fafbec19978291397389e0 (patch)
tree14b39f9d5b3893cdd2ecf864c714b019ea17056c /native/src/widget
parent818ae4977a36c30a61492f85afa96e261c5d7167 (diff)
downloadiced-d2008eed47ced61937fafbec19978291397389e0.tar.gz
iced-d2008eed47ced61937fafbec19978291397389e0.tar.bz2
iced-d2008eed47ced61937fafbec19978291397389e0.zip
Mapped operations is missing text_input()...
This fixes a bug where some operations could be dropped.
Diffstat (limited to 'native/src/widget')
-rw-r--r--native/src/widget/action.rs12
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);
}