From afbdbe11fc2bafc3435198a4c06e354096d3dc57 Mon Sep 17 00:00:00 2001 From: Asura Date: Tue, 6 Sep 2022 14:02:12 +0800 Subject: [PATCH] Opt: wayland map mode --- src/server/input_service.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/input_service.rs b/src/server/input_service.rs index 70af1e581..0088f7dad 100644 --- a/src/server/input_service.rs +++ b/src/server/input_service.rs @@ -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;