Opt: wayland map mode

This commit is contained in:
Asura 2022-09-06 14:02:12 +08:00
parent b6e0cc8e74
commit afbdbe11fc

View File

@ -595,6 +595,7 @@ pub fn handle_key(evt: &KeyEvent) {
QUEUE.exec_async(move || handle_key_(&evt));
return;
}
log::info!("{:?}", evt);
handle_key_(evt);
}
@ -647,6 +648,7 @@ fn map_keyboard_mode(evt: &KeyEvent) {
let (click_capslock, click_numlock) = sync_status(evt);
// Wayland
#[cfg(target_os = "linux")]
if !*IS_X11.lock().unwrap() {
let mut en = ENIGO.lock().unwrap();
let code = evt.chr() as u16;