mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
righ key mapping and fix mac crash
This commit is contained in:
@@ -347,7 +347,7 @@ pub enum Key {
|
||||
///
|
||||
Clear,
|
||||
///
|
||||
Menu,
|
||||
Menu, // deprecated, use alt instead
|
||||
///
|
||||
Pause,
|
||||
///
|
||||
@@ -409,6 +409,12 @@ pub enum Key {
|
||||
///
|
||||
NumpadEnter,
|
||||
///
|
||||
RightShift,
|
||||
///
|
||||
RightControl,
|
||||
///
|
||||
RightAlt,
|
||||
///
|
||||
/// Function, /// mac
|
||||
/// keyboard layout dependent key
|
||||
Layout(char),
|
||||
@@ -485,7 +491,7 @@ impl Enigo {
|
||||
/// ```
|
||||
pub fn new() -> Self {
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
return Enigo{};
|
||||
return Enigo {};
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
Self::default()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user