Browse Source

Ensure that pressing the escape key always dismisses an AlertWindow

tags/2021-05-28
ed 7 years ago
parent
commit
d1ed072622
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/windows/juce_AlertWindow.cpp

+ 1
- 1
modules/juce_gui_basics/windows/juce_AlertWindow.cpp 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;


Loading…
Cancel
Save