input: Use suppresssed_keys() for a11y grabs
This mostly seems to behave the same way, but presumably we want a key release to be treated as grabbed if and only if the press had been.
This commit is contained in:
parent
a3904af03c
commit
1c35339076
1 changed files with 7 additions and 5 deletions
|
|
@ -1833,12 +1833,14 @@ impl State {
|
|||
return FilterResult::Intercept(None);
|
||||
}
|
||||
|
||||
if self.common.a11y_keyboard_monitor_state.has_keyboard_grab()
|
||||
|| self
|
||||
.common
|
||||
.a11y_keyboard_monitor_state
|
||||
.has_key_grab(modifiers, handle.modified_sym())
|
||||
if event.state() == KeyState::Pressed
|
||||
&& (self.common.a11y_keyboard_monitor_state.has_keyboard_grab()
|
||||
|| self
|
||||
.common
|
||||
.a11y_keyboard_monitor_state
|
||||
.has_key_grab(modifiers, handle.modified_sym()))
|
||||
{
|
||||
seat.supressed_keys().add(&handle, None);
|
||||
return FilterResult::Intercept(None);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue