From d1d4f837229d85ec70dcfd37d1634f55da4943cd Mon Sep 17 00:00:00 2001 From: apricotbucket28 <71973804+apricotbucket28@users.noreply.github.com> Date: Mon, 1 Apr 2024 15:43:52 -0300 Subject: [PATCH] Revert "Fix key repeat after releasing a different key on Wayland" (#10039) Reverts zed-industries/zed#9768 That change didn't seem necessary and it made symbols that need a key shortcut to be written (e.g. SHIFT + 2 for a quote) infinitely repeat. Release Notes: - N/A --- crates/gpui/src/platform/linux/wayland/client.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/gpui/src/platform/linux/wayland/client.rs b/crates/gpui/src/platform/linux/wayland/client.rs index d14688e10669fa8e88aed1b470e9113f319fd050..c3fbe3ea25803ffc17c350b615b335c4f5a79585 100644 --- a/crates/gpui/src/platform/linux/wayland/client.rs +++ b/crates/gpui/src/platform/linux/wayland/client.rs @@ -796,12 +796,7 @@ impl Dispatch for WaylandClientState { }) }; - if !keysym.is_modifier_key() - && (match state.repeat.current_keysym { - Some(repeat_keysym) => keysym == repeat_keysym, - None => false, - }) - { + if !keysym.is_modifier_key() { state.repeat.current_keysym = None; }