diff options
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index e9e8609b..ad71cb31 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -433,6 +433,13 @@ void charSelect() case SDL_QUIT: state = EXIT; break; + + case SDL_KEYDOWN: + if (event.key.keysym.sym == SDLK_ESCAPE) + { + state = EXIT; + } + break; } guiInput->pushInput(event); |