mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-28 15:49:04 +08:00
Fix down and press of key_event in legacy
This commit is contained in:
parent
40534fd79f
commit
abf79ba61d
@ -827,8 +827,13 @@ impl<T: InvokeUi> Session<T> {
|
||||
}
|
||||
}
|
||||
|
||||
self.legacy_modifiers(&mut key_event, true, true, false, false);
|
||||
key_event.press = down;
|
||||
self.legacy_modifiers(&mut key_event, alt, ctrl, shift, command);
|
||||
if v == 1 {
|
||||
key_event.down = true;
|
||||
} else if v == 3 {
|
||||
key_event.press = true;
|
||||
}
|
||||
|
||||
self.send_key_event(key_event, KeyboardMode::Legacy);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user