diff options
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r-- | gui/dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp index 3bcf770ff3..1afd18ec52 100644 --- a/gui/dialog.cpp +++ b/gui/dialog.cpp @@ -23,6 +23,7 @@ */ #include "common/stdafx.h" +#include "common/events.h" #include "gui/newgui.h" #include "gui/dialog.h" @@ -233,7 +234,7 @@ void Dialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) { } // ESC closes all dialogs by default - if (keycode == 27) { + if (keycode == Common::KEYCODE_ESCAPE) { setResult(-1); close(); } |