Merge pull request #3557 from fufesou/fix/debug_breakpoint

set KEYBOARD_ONLY for rdev
This commit is contained in:
RustDesk
2023-03-08 21:26:06 +08:00
committed by GitHub

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> {