fix compile again

This commit is contained in:
rustdesk 2022-12-21 11:38:54 +08:00
parent e47d1c7dbe
commit f0653bb10a

View File

@ -339,12 +339,14 @@ 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")))]
res = legacy_keyboard_mode(event, key_event)?;
{
legacy_keyboard_mode(event, key_event)?
}
#[cfg(any(target_os = "android", target_os = "ios"))]
res = None?;
res
{
None?
}
}
};
#[cfg(not(any(target_os = "android", target_os = "ios")))]