diff options
author | James Brown | 2002-06-30 13:33:49 +0000 |
---|---|---|
committer | James Brown | 2002-06-30 13:33:49 +0000 |
commit | 89381b6657ccee31fa0864a4fea36ab2957d06e3 (patch) | |
tree | e15eca19e8a33046756897d95195eb6af4db53a9 /gui.cpp | |
parent | 13db767d7b32d71ec4aef465cedb13572a0a8561 (diff) | |
download | scummvm-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.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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) { |