Merge pull request #652 from twitchyliquid64/text_input_fix

text_input: Do not capture Tab/Up/Down keys
This commit is contained in:
Héctor Ramón 2021-08-12 12:58:08 +07:00 committed by GitHub
commit a7c40665fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -582,6 +582,11 @@ where
self.state.keyboard_modifiers =
keyboard::Modifiers::default();
}
keyboard::KeyCode::Tab
| keyboard::KeyCode::Up
| keyboard::KeyCode::Down => {
return event::Status::Ignored;
}
_ => {}
}
@ -594,6 +599,11 @@ where
keyboard::KeyCode::V => {
self.state.is_pasting = None;
}
keyboard::KeyCode::Tab
| keyboard::KeyCode::Up
| keyboard::KeyCode::Down => {
return event::Status::Ignored;
}
_ => {}
}