mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-24 15:16:12 +00:00
try out unicode if key_down fail
This commit is contained in:
1 parent
b526bf4a67
commit
2724bd4000
3 files changed
+26
-7
No files matched your search
@@ -195,7 +195,11 @@ impl KeyboardControllable for Enigo {
|
||||
}
|
||||
|
||||
fn key_down(&mut self, key: Key) -> crate::ResultType {
|
||||
let res = keybd_event(0, self.key_to_keycode(key), 0);
|
||||
let code = self.key_to_keycode(key);
|
||||
if code == 0 || code == 65535 {
|
||||
return Err("".into());
|
||||
}
|
||||
let res = keybd_event(0, code, 0);
|
||||
if res == 0 {
|
||||
let err = get_error();
|
||||
if !err.is_empty() {
|
||||
|
||||
Reference in new issue
Block a user