diff options
-rw-r--r-- | Libraries/LibGUI/GDialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GDialog.cpp b/Libraries/LibGUI/GDialog.cpp index 89d0891e96..0ff2200dda 100644 --- a/Libraries/LibGUI/GDialog.cpp +++ b/Libraries/LibGUI/GDialog.cpp @@ -73,6 +73,7 @@ void GDialog::event(CEvent& event) auto& key_event = static_cast<GKeyEvent&>(event); if (key_event.key() == KeyCode::Key_Escape) { done(ExecCancel); + event.accept(); return; } } |