Handle some TextInput events

This commit is contained in:
Héctor Ramón Jiménez 2019-10-30 05:00:12 +01:00
parent 63cd0fd8eb
commit fedcab6f4f
7 changed files with 93 additions and 29 deletions

View file

@ -13,7 +13,9 @@ pub struct TextInput<'a, Message> {
}
#[derive(Debug, Default)]
pub struct State {}
pub struct State {
pub is_focused: bool,
}
impl<'a, Message> TextInput<'a, Message> {
pub fn new<F>(