diff --git a/Cargo.lock b/Cargo.lock index 0d016c052..1133105ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4840,7 +4840,7 @@ dependencies = [ [[package]] name = "rdev" version = "0.5.0-2" -source = "git+https://github.com/fufesou/rdev#2b9d473dfd9a49649627f0684f49e920494837e2" +source = "git+https://github.com/fufesou/rdev#f43a42fbedf1234a4bc132581790d63c9a2c8f92" dependencies = [ "cocoa", "core-foundation 0.9.3", diff --git a/src/server/input_service.rs b/src/server/input_service.rs index 8096237f6..41423d436 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -1292,7 +1292,8 @@ fn simulate_win2win_hotkey(code: u32, down: bool) { } let keycode: u16 = ((code >> 16) & 0x0000FFFF) as u16; - allow_err!(rdev::simulate_code(Some(keycode), None, down)); + let scan = rdev::vk_to_scancode(keycode as _); + allow_err!(rdev::simulate_code(None, Some(scan), down)); } #[cfg(not(any(target_os = "windows", target_os = "linux")))]