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
commit 675178a520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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