Unfocus TextInput
when Escape
key is pressed
This commit is contained in:
parent
51c22f2426
commit
4ab9992bf8
@ -468,6 +468,11 @@ where
|
||||
self.state.cursor.select_all(&self.value);
|
||||
}
|
||||
}
|
||||
keyboard::KeyCode::Escape => {
|
||||
self.state.is_focused = false;
|
||||
self.state.is_dragging = false;
|
||||
self.state.is_pasting = None;
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
Event::Keyboard(keyboard::Event::KeyReleased {
|
||||
|
Loading…
Reference in New Issue
Block a user