Add Enter variant to Action in text::Editor

This commit is contained in:
Héctor Ramón Jiménez 2023-09-12 15:03:23 +02:00
parent 6448429103
commit 1455911b63
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 3 additions and 0 deletions

View file

@ -425,6 +425,7 @@ impl Update {
keyboard::KeyCode::Down => {
Some(Self::Edit(Action::MoveDown))
}
keyboard::KeyCode::Enter => Some(Self::Edit(Action::Enter)),
keyboard::KeyCode::Backspace => {
Some(Self::Edit(Action::Backspace))
}