From a5e482833d4646084bf2457cb8d7e1cf9fc9709b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Jan 2020 21:37:22 +0100 Subject: [PATCH] LibGUI: Make GDialog accept escape key press events Anyone who "handles" an event should really also be accepting it. --- Libraries/LibGUI/GDialog.cpp | 1 + 1 file changed, 1 insertion(+) 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(event); if (key_event.key() == KeyCode::Key_Escape) { done(ExecCancel); + event.accept(); return; } }