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:
parent
fef47b8f68
commit
d1ed072622
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue