mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
HWNDComponentPeer: Dismiss temporary modal windows when a window loses focus
This commit is contained in:
parent
44ca96271d
commit
b465f60851
1 changed files with 6 additions and 0 deletions
|
|
@ -3812,6 +3812,12 @@ private:
|
|||
}
|
||||
|
||||
handleFocusLoss();
|
||||
|
||||
if (auto* modal = Component::getCurrentlyModalComponent())
|
||||
if (auto* peer = modal->getPeer())
|
||||
if ((peer->getStyleFlags() & ComponentPeer::windowIsTemporary) != 0)
|
||||
sendInputAttemptWhenModalMessage();
|
||||
|
||||
break;
|
||||
|
||||
case WM_ACTIVATEAPP:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue