trivial change
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
1291c840b9
commit
83c4909eeb
@ -361,11 +361,10 @@ pub fn event_to_key_event(event: &Event, lock_modes: Option<i32>) -> Option<KeyE
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
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")))]
|
|
||||||
add_numlock_capslock_status(&mut key_event);
|
add_numlock_capslock_status(&mut key_event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user