feat: Support new keyboard mode

This commit is contained in:
Asura
2022-07-13 02:14:32 -07:00
parent 7b3b900764
commit 7fe2609ffb
5 changed files with 0 additions and 16 deletions

View File

@@ -589,10 +589,8 @@ fn handle_key_(evt: &KeyEvent) {
if keyboard_mode == 1 {
if let Some(key_event::Union::chr(chr)) = evt.union {
if evt.down {
println!("key down: {:?}", chr);
en.key_down(Key::Raw(chr.try_into().unwrap()));
} else {
println!("key up: {:?}", chr);
en.key_up(Key::Raw(chr.try_into().unwrap()));
}
}