mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Fix key repeat after releasing a different key on Wayland (#9768)
Quick fix that fixes key repeat not working when releasing a different key than the current one being held Don't really know much rust yet, so unsure this is the best way to handle this, but this does seem like a good starting point to get at least a tad familiar with it Release Notes: - N/A
This commit is contained in:
parent
6231df978b
commit
030e299b27
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
state.repeat.current_keysym = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue