summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text_input.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-04 03:55:41 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-08-04 03:55:41 +0200
commit13dd1ca0a83cc95eea52e2106da9dc1ee1f37958 (patch)
tree4b142110e23fe45b8d5d21935034c951f548d7e8 /native/src/widget/text_input.rs
parent6eb3dd7e5edc8847875c288c41d1dec8b1dad06e (diff)
downloadiced-13dd1ca0a83cc95eea52e2106da9dc1ee1f37958.tar.gz
iced-13dd1ca0a83cc95eea52e2106da9dc1ee1f37958.tar.bz2
iced-13dd1ca0a83cc95eea52e2106da9dc1ee1f37958.zip
Implement `scrollable::snap_to` operation
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r--native/src/widget/text_input.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index a81cfaed..e0216a5b 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -21,7 +21,6 @@ use crate::text::{self, Text};
use crate::touch;
use crate::widget;
use crate::widget::operation::{self, Operation};
-use crate::widget::state;
use crate::widget::tree::{self, Tree};
use crate::{
Clipboard, Color, Command, Element, Layout, Length, Padding, Point,
@@ -329,7 +328,7 @@ impl Id {
}
pub fn focus<Message: 'static>(id: Id) -> Command<Message> {
- Command::widget(operation::focus(id.0))
+ Command::widget(operation::focusable::focus(id.0))
}
/// Computes the layout of a [`TextInput`].
@@ -982,7 +981,7 @@ impl State {
}
}
-impl state::Focusable for State {
+impl operation::Focusable for State {
fn is_focused(&self) -> bool {
State::is_focused(self)
}