From 1b127480af81d0725cbeef96606fce41e4302fd4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 6 Dec 2003 13:55:50 +0000 Subject: erik's patch for bug #854470 svn-id: r11521 --- gui/dialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gui') 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 } -- cgit v1.2.3