aboutsummaryrefslogtreecommitdiff
path: root/gui.cpp
diff options
context:
space:
mode:
authorJames Brown2002-06-30 13:33:49 +0000
committerJames Brown2002-06-30 13:33:49 +0000
commit89381b6657ccee31fa0864a4fea36ab2957d06e3 (patch)
treee15eca19e8a33046756897d95195eb6af4db53a9 /gui.cpp
parent13db767d7b32d71ec4aef465cedb13572a0a8561 (diff)
downloadscummvm-rg350-89381b6657ccee31fa0864a4fea36ab2957d06e3.tar.gz
scummvm-rg350-89381b6657ccee31fa0864a4fea36ab2957d06e3.tar.bz2
scummvm-rg350-89381b6657ccee31fa0864a4fea36ab2957d06e3.zip
Add esc as an alias for 'play' in the GUI. Thanks to NotHere
svn-id: r4442
Diffstat (limited to 'gui.cpp')
-rw-r--r--gui.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/gui.cpp b/gui.cpp
index 1f3c737e6c..ae26ffaefd 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -968,13 +968,16 @@ void Gui::loop()
if (_s->_mouseButStat & MBS_LEFT_CLICK) {
leftMouseClick(_s->mouse.x, _s->mouse.y);
} else if (_s->_lastKeyHit) {
- if (_dialog != KEYS_DIALOG)
- addLetter((unsigned char)_s->_lastKeyHit);
+ if (_dialog != KEYS_DIALOG) {
+ if (_s->_lastKeyHit == 27)
+ close();
+ else
+ addLetter((unsigned char)_s->_lastKeyHit);
#ifdef _WIN32_WCE
- else if (_s->_lastKeyHit > 1000) // GAPI
+ } else if (_s->_lastKeyHit > 1000) { // GAPI
addLetter(_s->_lastKeyHit - 1000);
#endif
-
+ }
}
if (_clickTimer && !--_clickTimer) {