mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 09:02:26 +03:00
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:
parent
aa76182ca7
commit
d1d4f83722
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user