From fea017148665e45f62993570791af9ab9514ec39 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 21 Dec 2022 10:57:41 +0800 Subject: [PATCH] fix android compile issue --- src/keyboard.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/keyboard.rs b/src/keyboard.rs index df052ebbc..72efac381 100644 --- a/src/keyboard.rs +++ b/src/keyboard.rs @@ -339,8 +339,12 @@ pub fn event_to_key_event(event: &Event) -> Option { 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")))]