refacotor: simplify mod of keyboard

This commit is contained in:
Asura
2022-12-07 19:31:32 -08:00
committed by Chieh Wang
parent dff5d55f50
commit 176ed43807
6 changed files with 495 additions and 590 deletions

View File

@@ -1002,9 +1002,6 @@ pub fn handle_key_(evt: &KeyEvent) {
}
match evt.mode.unwrap() {
KeyboardMode::Legacy => {
legacy_keyboard_mode(evt);
}
KeyboardMode::Map => {
map_keyboard_mode(evt);
}