Merge pull request #3557 from fufesou/fix/debug_breakpoint
set KEYBOARD_ONLY for rdev
This commit is contained in:
		
						commit
						675178a520
					
				@ -215,6 +215,7 @@ static mut IS_0X021D_DOWN: bool = false;
 | 
				
			|||||||
static mut IS_LEFT_OPTION_DOWN: bool = false;
 | 
					static mut IS_LEFT_OPTION_DOWN: bool = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub fn start_grab_loop() {
 | 
					pub fn start_grab_loop() {
 | 
				
			||||||
 | 
					    std::env::set_var("KEYBOARD_ONLY", "y");
 | 
				
			||||||
    #[cfg(any(target_os = "windows", target_os = "macos"))]
 | 
					    #[cfg(any(target_os = "windows", target_os = "macos"))]
 | 
				
			||||||
    std::thread::spawn(move || {
 | 
					    std::thread::spawn(move || {
 | 
				
			||||||
        let try_handle_keyboard = move |event: Event, key: Key, is_press: bool| -> Option<Event> {
 | 
					        let try_handle_keyboard = move |event: Event, key: Key, is_press: bool| -> Option<Event> {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user