Change summary
crates/gpui/src/platform/linux/wayland/client.rs | 2 ++
crates/gpui/src/platform/linux/x11/client.rs | 2 ++
2 files changed, 4 insertions(+)
Detailed changes
@@ -1295,6 +1295,7 @@ impl Dispatch<wl_keyboard::WlKeyboard, ()> 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<wl_keyboard::WlKeyboard, ()> for WaylandClientStatePtr {
}
state.compose_state = Some(compose);
}
+ println!("Wayland Key pressed: {:#?}", keystroke);
let input = PlatformInput::KeyDown(KeyDownEvent {
keystroke: keystroke.clone(),
is_held: false,
@@ -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,