macos mid commit

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2022-12-18 15:04:35 +08:00
1 parent cfca4047c5
commit 0c057139e4
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -376,7 +376,7 @@ impl<T: InvokeUiSession> Session<T> {
let scancode: u32 = scancode as u32;
#[cfg(not(target_os = "windows"))]
let key = rdev::key_from_scancode(scancode) as rdev::Key;
let key = rdev::key_from_code(keycode) as rdev::Key;
// Windows requires special handling
#[cfg(target_os = "windows")]
let key = rdev::get_win_key(keycode, scancode);