From 8793b3400bddee6a42289666f7dcb37ed3e62942 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 9 Nov 2012 21:05:43 +0000 Subject: [PATCH] - bugfix for backspace on mac --- source/shared_lib/sources/platform/sdl/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/shared_lib/sources/platform/sdl/window.cpp b/source/shared_lib/sources/platform/sdl/window.cpp index 2e038974..deb4e35d 100644 --- a/source/shared_lib/sources/platform/sdl/window.cpp +++ b/source/shared_lib/sources/platform/sdl/window.cpp @@ -804,6 +804,9 @@ bool isKeyPressed(SDLKey compareKey, SDL_KeyboardEvent input,bool modifiersAllow else if(compareKey == SDLK_KP_MULTIPLY) { result = (c == SDLK_ASTERISK); } + else if(compareKey == SDLK_BACKSPACE) { + result = (c == SDLK_DELETE); + } else if( compareKey >= SDLK_0 && compareKey <= SDLK_9) { switch(compareKey) { case SDLK_0: