Make TextInput emit a Submit message when the key NumpadEnter is pressed
This commit is contained in:
parent
c2eb9d7fbc
commit
b479ba4821
1 changed files with 2 additions and 1 deletions
|
|
@ -519,7 +519,8 @@ where
|
|||
let modifiers = self.state.keyboard_modifiers;
|
||||
|
||||
match key_code {
|
||||
keyboard::KeyCode::Enter => {
|
||||
keyboard::KeyCode::Enter
|
||||
| keyboard::KeyCode::NumpadEnter => {
|
||||
if let Some(on_submit) = self.on_submit.clone() {
|
||||
shell.publish(on_submit);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue