mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Don't send modal input attempts to windows that are explicitly ignoring them
This commit is contained in:
parent
3f7791bbfe
commit
1744008413
1 changed files with 3 additions and 1 deletions
|
|
@ -4033,7 +4033,9 @@ private:
|
|||
return false;
|
||||
|
||||
if (auto* current = Component::getCurrentlyModalComponent())
|
||||
current->inputAttemptWhenModal();
|
||||
if (auto* owner = getOwnerOfWindow ((HWND) current->getWindowHandle()))
|
||||
if (! owner->shouldIgnoreModalDismiss)
|
||||
current->inputAttemptWhenModal();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue