aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/events.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/sdl/events.cpp b/backends/sdl/events.cpp
index b351db9524..3a25f971db 100644
--- a/backends/sdl/events.cpp
+++ b/backends/sdl/events.cpp
@@ -228,6 +228,12 @@ bool OSystem_SDL::poll_event(Event *event) {
event->event_code = EVENT_QUIT;
return true;
}
+#elif defined(UNIX)
+ // On other unices, Control-Q quits
+ if ((ev.key.keysym.mod & KMOD_CTRL) && ev.key.keysym.sym == 'q') {
+ event->event_code = EVENT_QUIT;
+ return true;
+ }
#else
// Ctrl-z and Alt-X quit
if ((b == KBD_CTRL && ev.key.keysym.sym == 'z') || (b == KBD_ALT && ev.key.keysym.sym == 'x')) {