fix build
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									acac305441
								
							
						
					
					
						commit
						d279588a64
					
				| @ -2,6 +2,7 @@ | ||||
| /// cbindgen:ignore
 | ||||
| pub mod platform; | ||||
| mod keyboard; | ||||
| #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||
| pub use keyboard::keycode_to_rdev_key; | ||||
| #[cfg(not(any(target_os = "android", target_os = "ios")))] | ||||
| pub use platform::{get_cursor, get_cursor_data, get_cursor_pos, start_os_service}; | ||||
|  | ||||
| @ -1410,6 +1410,9 @@ pub fn handle_key_(evt: &KeyEvent) { | ||||
|             Some(LockModesHandler::new(&evt)) | ||||
|         } | ||||
|         _ => { | ||||
|             // LockModesHandler should not be created when single meta is pressing and releasing.
 | ||||
|             // Because the drop function may insert "CapsLock Click" and "NumLock Click", which breaks single meta click.
 | ||||
|             // https://github.com/rustdesk/rustdesk/issues/3928#issuecomment-1496936687
 | ||||
|             if evt.down && !is_win_linux_meta_key(evt) { | ||||
|                 Some(LockModesHandler::new(evt)) | ||||
|             } else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user