From a93c6a90f5db8ddc8d568be508372be82b31f1ca Mon Sep 17 00:00:00 2001 From: sezero Date: Fri, 10 Feb 2012 22:04:43 +0000 Subject: [PATCH] in_sdl.c: fixed backspace key on Mac OS X git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@631 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/in_sdl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 8663bf2e..57928011 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -364,6 +364,10 @@ void IN_SendKeyEvents (void) case key_console: if ((event.key.keysym.unicode != 0) || (modstate & KMOD_SHIFT)) { +#if defined(__APPLE__) && defined(__MACH__) + if (sym == SDLK_BACKSPACE) + break; /* avoid change to SDLK_DELETE */ +#endif /* Mac OS X */ #if defined(__QNX__) if ((sym == SDLK_BACKSPACE) || (sym == SDLK_RETURN)) break; /* S.A: fixes QNX weirdness */