diff --git a/Userland/Libraries/LibGUI/Dialog.cpp b/Userland/Libraries/LibGUI/Dialog.cpp index 314c534f51..adf5fa9f00 100644 --- a/Userland/Libraries/LibGUI/Dialog.cpp +++ b/Userland/Libraries/LibGUI/Dialog.cpp @@ -54,7 +54,7 @@ void Dialog::done(int result) void Dialog::event(Core::Event& event) { - if (event.type() == Event::KeyUp) { + if (event.type() == Event::KeyUp || event.type() == Event::KeyDown) { auto& key_event = static_cast(event); if (key_event.key() == KeyCode::Key_Escape) { done(ExecCancel);