Fix control character usage

This commit is contained in:
Jeremy Soller 2022-10-19 11:33:35 -06:00
parent 07a832efd4
commit edc0631df6
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 82 additions and 74 deletions

View file

@ -231,14 +231,6 @@ where
buffer.action(TextAction::Down);
return Status::Captured;
},
KeyCode::Backspace => {
buffer.action(TextAction::Backspace);
return Status::Captured;
},
KeyCode::Delete => {
buffer.action(TextAction::Delete);
return Status::Captured;
},
KeyCode::Home => {
buffer.action(TextAction::Home);
return Status::Captured;
@ -255,6 +247,18 @@ where
buffer.action(TextAction::PageDown);
return Status::Captured;
},
KeyCode::Enter => {
buffer.action(TextAction::Enter);
return Status::Captured;
},
KeyCode::Backspace => {
buffer.action(TextAction::Backspace);
return Status::Captured;
},
KeyCode::Delete => {
buffer.action(TextAction::Delete);
return Status::Captured;
},
_ => ()
},
Event::Keyboard(KeyEvent::CharacterReceived(character)) => {