fix build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-01-10 14:47:23 +08:00
parent 00867276ed
commit 1291c840b9

View File

@ -362,6 +362,7 @@ pub fn event_to_key_event(event: &Event, lock_modes: Option<i32>) -> Option<KeyE
} }
}; };
if let Some(lock_modes) = lock_modes { if let Some(lock_modes) = lock_modes {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
add_numlock_capslock_with_lock_modes(&mut key_event, lock_modes); add_numlock_capslock_with_lock_modes(&mut key_event, lock_modes);
} else { } else {
#[cfg(not(any(target_os = "android", target_os = "ios")))] #[cfg(not(any(target_os = "android", target_os = "ios")))]