Revert "fix: don't pass keyboard events to content if popover modal is open"
This reverts commit 9cc82abd9c.
This commit is contained in:
parent
7e82198ab1
commit
e793c4552b
1 changed files with 3 additions and 11 deletions
|
|
@ -157,17 +157,9 @@ where
|
|||
) {
|
||||
if self.popup.is_some() {
|
||||
if self.modal {
|
||||
match event {
|
||||
Event::Mouse(_) | Event::Touch(_) => {
|
||||
shell.capture_event();
|
||||
return;
|
||||
}
|
||||
// app-level keyboard navigation (Tab focus cycling, Escape)
|
||||
// still receives keyboard events
|
||||
Event::Keyboard(_) => {
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
if matches!(event, Event::Mouse(_) | Event::Touch(_)) {
|
||||
shell.capture_event();
|
||||
return;
|
||||
}
|
||||
} else if let Some(on_close) = self.on_close.as_ref() {
|
||||
if matches!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue