set KEYBOARD_ONLY for rdev

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-08 21:00:56 +08:00
parent 5ebaefe08a
commit de27f36134

View File

@ -215,6 +215,7 @@ static mut IS_0X021D_DOWN: bool = false;
static mut IS_LEFT_OPTION_DOWN: bool = false;
pub fn start_grab_loop() {
std::env::set_var("KEYBOARD_ONLY", "y");
#[cfg(any(target_os = "windows", target_os = "macos"))]
std::thread::spawn(move || {
let try_handle_keyboard = move |event: Event, key: Key, is_press: bool| -> Option<Event> {