Fix map keyboard mode in Android

This commit is contained in:
Asura committed 2022-09-28 00:28:52 -07:00
1 parent a4774b0824
commit 9e3fc377b8
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -850,6 +850,7 @@ impl<T: InvokeUiSession> Session<T> {
key_event.set_chr(chr);
}
Key::ControlKey(key) => {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
let key = if !get_key_state(enigo::Key::NumLock) {
match key {
ControlKey::Numpad0 => ControlKey::Insert,