Add ModifiersState to keyboard::Event::Input
This commit is contained in:
parent
31b0b7f580
commit
65cac922b3
6 changed files with 44 additions and 3 deletions
|
|
@ -202,6 +202,7 @@ where
|
|||
Event::Keyboard(keyboard::Event::Input {
|
||||
key_code,
|
||||
state: ButtonState::Pressed,
|
||||
modifiers,
|
||||
}) if self.state.is_focused => match key_code {
|
||||
keyboard::KeyCode::Enter => {
|
||||
if let Some(on_submit) = self.on_submit.clone() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue