mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-12 02:21:29 +03:00
@@ -2,6 +2,7 @@
|
|||||||
/// cbindgen:ignore
|
/// cbindgen:ignore
|
||||||
pub mod platform;
|
pub mod platform;
|
||||||
mod keyboard;
|
mod keyboard;
|
||||||
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
pub use keyboard::keycode_to_rdev_key;
|
pub use keyboard::keycode_to_rdev_key;
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
pub use platform::{get_cursor, get_cursor_data, get_cursor_pos, start_os_service};
|
pub use platform::{get_cursor, get_cursor_data, get_cursor_pos, start_os_service};
|
||||||
|
|||||||
@@ -1410,6 +1410,9 @@ pub fn handle_key_(evt: &KeyEvent) {
|
|||||||
Some(LockModesHandler::new(&evt))
|
Some(LockModesHandler::new(&evt))
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
// LockModesHandler should not be created when single meta is pressing and releasing.
|
||||||
|
// Because the drop function may insert "CapsLock Click" and "NumLock Click", which breaks single meta click.
|
||||||
|
// https://github.com/rustdesk/rustdesk/issues/3928#issuecomment-1496936687
|
||||||
if evt.down && !is_win_linux_meta_key(evt) {
|
if evt.down && !is_win_linux_meta_key(evt) {
|
||||||
Some(LockModesHandler::new(evt))
|
Some(LockModesHandler::new(evt))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user