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
This commit is contained in:
apricotbucket28 2024-04-01 15:43:52 -03:00 committed by GitHub
parent aa76182ca7
commit d1d4f83722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -796,12 +796,7 @@ impl Dispatch<wl_keyboard::WlKeyboard, ()> 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;
}