mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-26 22:51:03 +03:00
Refactor simulate to support switching keyboard modes
This commit is contained in:
@@ -419,15 +419,8 @@ impl Connection {
|
||||
handle_mouse(&msg, id);
|
||||
}
|
||||
MessageInput::Key((mut msg, press)) => {
|
||||
if press {
|
||||
msg.down = true;
|
||||
}
|
||||
// todo: press and down have similar meanings.
|
||||
handle_key(&msg);
|
||||
let keyboard_mode = 1;
|
||||
if press && keyboard_mode != 1{
|
||||
msg.down = false;
|
||||
handle_key(&msg);
|
||||
}
|
||||
}
|
||||
MessageInput::BlockOn => {
|
||||
if crate::platform::block_input(true) {
|
||||
|
||||
Reference in New Issue
Block a user