From 02376854734790b17026a2836294e8f0111d2f40 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 21 Jun 2004 02:09:50 +0000 Subject: disable alt-x and ctrl-z quit keys in favour of ctrl-q on non Mac OS X unices (including Linux) for consistency with other applications svn-id: r13989 --- backends/sdl/events.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/sdl') 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')) { -- cgit v1.2.3