diff --git a/modules/juce_gui_basics/windows/juce_AlertWindow.cpp b/modules/juce_gui_basics/windows/juce_AlertWindow.cpp index 0cf30ff117..c55c7aa8f8 100644 --- a/modules/juce_gui_basics/windows/juce_AlertWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_AlertWindow.cpp @@ -523,7 +523,7 @@ bool AlertWindow::keyPressed (const KeyPress& key) } } - if (key.isKeyCode (KeyPress::escapeKey) && escapeKeyCancels && buttons.size() == 0) + if (key.isKeyCode (KeyPress::escapeKey) && escapeKeyCancels) { exitModalState (0); return true;