Fix control character usage
This commit is contained in:
parent
07a832efd4
commit
edc0631df6
3 changed files with 82 additions and 74 deletions
|
|
@ -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)) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue