fix: only suppress keys when an action is on press

Actions which are on releasedon't have anything to suppress, and end up suppressing the next release.
This commit is contained in:
Ashley Wulber 2024-07-22 19:09:28 -04:00 committed by Victoria Brekenfeld
parent 27f048b998
commit f406bf33ae

View file

@ -464,7 +464,10 @@ impl State {
) || modifiers_bypass
{
modifiers_queue.clear();
seat.supressed_keys().add(&handle, None);
// only suppress if the action is on Press
if !modifiers_bypass {
seat.supressed_keys().add(&handle, None);
}
return FilterResult::Intercept(Some((
Action::Shortcut(action.clone()),
binding.clone(),