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)?
|
translate_keyboard_mode(event, key_event)?
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
let res;
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[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")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user