aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu')
-rw-r--r--src/menu/application.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index 80fded75..9f3b6b2d 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -114,6 +114,16 @@ namespace usdx
case SDL_QUIT:
running = false;
event_thread.interrupt();
+ break;
+
+ case SDL_KEYDOWN:
+ if (event.key.keysym.sym == SDLK_q) {
+ running = false;
+ event_thread.interrupt();
+ break;
+ }
+
+ /* fall throught */
default:
event_manager.add_event(event);