diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index 3b0c6dd3ff..ea0c256b20 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -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; }