Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix key repeat after releasing a different key on Wayland (#9768)
RoblKyogre030e299b2718
diff --git a/crates/gpui/src/platform/linux/wayland/client.rs b/crates/gpui/src/platform/linux/wayland/client.rsindex c3fbe3ea258..d14688e1066 100644--- a/crates/gpui/src/platform/linux/wayland/client.rs+++ b/crates/gpui/src/platform/linux/wayland/client.rs@@ -796,7 +796,12 @@ impl Dispatch<wl_keyboard::WlKeyboard, ()> for WaylandClientState {})};- if !keysym.is_modifier_key() {+ if !keysym.is_modifier_key()+ && (match state.repeat.current_keysym {+ Some(repeat_keysym) => keysym == repeat_keysym,+ None => false,+ })+ {state.repeat.current_keysym = None;}