macos mid commit

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-12-16 23:45:31 +08:00
parent cfca4047c5
commit 0c057139e4
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,6 @@ use objc::{
}; };
use sciter::{make_args, Host}; use sciter::{make_args, Host};
use std::{ffi::c_void, rc::Rc}; use std::{ffi::c_void, rc::Rc};
use dark_light;
static APP_HANDLER_IVAR: &str = "GoDeskAppHandler"; static APP_HANDLER_IVAR: &str = "GoDeskAppHandler";

View File

@ -376,7 +376,7 @@ impl<T: InvokeUiSession> Session<T> {
let scancode: u32 = scancode as u32; let scancode: u32 = scancode as u32;
#[cfg(not(target_os = "windows"))] #[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 // Windows requires special handling
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
let key = rdev::get_win_key(keycode, scancode); let key = rdev::get_win_key(keycode, scancode);