fix android compile issue

This commit is contained in:
rustdesk 2022-12-21 10:57:41 +08:00
parent f5a9469218
commit fea0171486

View File

@ -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")))]