aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2003-12-06 13:55:50 +0000
committerMax Horn2003-12-06 13:55:50 +0000
commit1b127480af81d0725cbeef96606fce41e4302fd4 (patch)
treeef4189f51edadfd1691420856544321c80d81400 /gui
parenta17c49d9a7e1522c5f259d7e89eb15ed81f326c3 (diff)
downloadscummvm-rg350-1b127480af81d0725cbeef96606fce41e4302fd4.tar.gz
scummvm-rg350-1b127480af81d0725cbeef96606fce41e4302fd4.tar.bz2
scummvm-rg350-1b127480af81d0725cbeef96606fce41e4302fd4.zip
erik's patch for bug #854470
svn-id: r11521
Diffstat (limited to 'gui')
-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
}