From 35db644beb22073a5318a68e7b8ca6cb143b1e0c Mon Sep 17 00:00:00 2001 From: Junkui Zhang <364772080@qq.com> Date: Wed, 21 May 2025 14:46:43 +0800 Subject: [PATCH] init --- crates/gpui/src/platform/linux/wayland/client.rs | 2 ++ crates/gpui/src/platform/linux/x11/client.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/gpui/src/platform/linux/wayland/client.rs b/crates/gpui/src/platform/linux/wayland/client.rs index 57d1dcec04ee6aa1828c98286c9115df4ccb6d44..9953ee29b9c9ad770f4a795ff171c303837740bd 100644 --- a/crates/gpui/src/platform/linux/wayland/client.rs +++ b/crates/gpui/src/platform/linux/wayland/client.rs @@ -1295,6 +1295,7 @@ impl Dispatch for WaylandClientStatePtr { wl_keyboard::KeyState::Pressed if !keysym.is_modifier_key() => { let mut keystroke = Keystroke::from_xkb(&keymap_state, state.modifiers, keycode); + println!("Wayland Before {:#?}", keystroke); if let Some(mut compose) = state.compose_state.take() { compose.feed(keysym); match compose.status() { @@ -1335,6 +1336,7 @@ impl Dispatch for WaylandClientStatePtr { } state.compose_state = Some(compose); } + println!("Wayland Key pressed: {:#?}", keystroke); let input = PlatformInput::KeyDown(KeyDownEvent { keystroke: keystroke.clone(), is_held: false, diff --git a/crates/gpui/src/platform/linux/x11/client.rs b/crates/gpui/src/platform/linux/x11/client.rs index 430ce9260b87ae1c4c7c64b463e647a4c6e6c90a..8f665e8a1ac41c870b68b9bd5278a709c0f1be41 100644 --- a/crates/gpui/src/platform/linux/x11/client.rs +++ b/crates/gpui/src/platform/linux/x11/client.rs @@ -1042,6 +1042,7 @@ impl X11Client { if keysym.is_modifier_key() { return Some(()); } + println!("X11 Before {:#?}", keystroke); if let Some(mut compose_state) = state.compose_state.take() { compose_state.feed(keysym); match compose_state.status() { @@ -1082,6 +1083,7 @@ impl X11Client { keystroke }; drop(state); + println!("X11 Key pressed: {:#?}", keystroke); window.handle_input(PlatformInput::KeyDown(crate::KeyDownEvent { keystroke, is_held: false,