1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Ensure that pressing the escape key always dismisses an AlertWindow

This commit is contained in:
ed 2018-04-30 09:15:38 +01:00
parent fef47b8f68
commit d1ed072622

View file

@ -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;