mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
feat: Support new keyboard mode
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user