mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-03 11:29:25 +08:00
fix android compile issue
This commit is contained in:
parent
f5a9469218
commit
fea0171486
@ -339,8 +339,12 @@ pub fn event_to_key_event(event: &Event) -> Option<KeyEvent> {
|
||||
translate_keyboard_mode(event, key_event)?
|
||||
}
|
||||
_ => {
|
||||
let res;
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
legacy_keyboard_mode(event, key_event)?
|
||||
res = legacy_keyboard_mode(event, key_event)?;
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
res = None;
|
||||
res
|
||||
}
|
||||
};
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
|
Loading…
Reference in New Issue
Block a user