diff options
author | Max Horn | 2003-12-06 13:55:50 +0000 |
---|---|---|
committer | Max Horn | 2003-12-06 13:55:50 +0000 |
commit | 1b127480af81d0725cbeef96606fce41e4302fd4 (patch) | |
tree | ef4189f51edadfd1691420856544321c80d81400 /gui | |
parent | a17c49d9a7e1522c5f259d7e89eb15ed81f326c3 (diff) | |
download | scummvm-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.cpp | 4 |
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 } |