Skip to content

Commit

Permalink
how about fix_modifiers?
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Aug 8, 2021
1 parent ad182a5 commit 8affa24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/input_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ fn handle_mouse_(evt: &MouseEvent, conn: i32) {
en.key_down(key.clone()).ok();
modifier_sleep();
to_release.push(key);
} else {
KEYS_DOWN.lock().unwrap().insert(ck.value(), Instant::now());
}
}
}
Expand Down Expand Up @@ -534,6 +536,8 @@ fn handle_key_(evt: &KeyEvent) {
en.key_down(key.clone()).ok();
modifier_sleep();
to_release.push(key);
} else {
KEYS_DOWN.lock().unwrap().insert(ck.value(), Instant::now());
}
}
}
Expand Down

0 comments on commit 8affa24

Please sign in to comment.