aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index e1fa72cc34..033cc23787 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -194,8 +194,10 @@ void Dialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) {
}
// ESC closes all dialogs by default
- if (keycode == 27)
+ if (keycode == 27) {
+ setResult(-1);
close();
+ }
// TODO: tab/shift-tab should focus the next/previous focusable widget
}