mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
@@ -70,9 +70,9 @@ lazy_static::lazy_static! {
|
||||
#[cfg(target_os = "windows")]
|
||||
let codes = numpad_keys.iter().filter_map(|k| rdev::win_scancode_from_key(*k)).collect();
|
||||
#[cfg(target_os = "linux")]
|
||||
let codes = numpad_keys.iter().filter_map(|k| rdev::linux_code_from_code(*k)).collect();
|
||||
let codes = numpad_keys.iter().filter_map(|k| rdev::linux_keycode_from_key(*k)).collect();
|
||||
#[cfg(target_os = "macos")]
|
||||
let codes = numpad_keys.iter().filter_map(|k| rdev::macos_code_from_code(*k)).collect();
|
||||
let codes = numpad_keys.iter().filter_map(|k| rdev::macos_keycode_from_key(*k)).collect();
|
||||
Arc::new(codes)
|
||||
};
|
||||
}
|
||||
@@ -905,6 +905,8 @@ fn is_altgr(event: &Event) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
||||
fn is_press(event: &Event) -> bool {
|
||||
matches!(event.event_type, EventType::KeyPress(_))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user