diff options
Diffstat (limited to 'code/unix')
-rw-r--r-- | code/unix/sdl_glimp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c index 29fe0ed..e855241 100644 --- a/code/unix/sdl_glimp.c +++ b/code/unix/sdl_glimp.c @@ -262,7 +262,14 @@ static const char *XLateKey(SDL_keysym *keysym, int *key) //else if (ch >= 'A' && ch <= 'Z') // ch = ch - 'A' + 'a'; - buf[0] = ch; + // tjw: translate K_BACKSPACE to ctrl-h for MACOS_X (others?) + if (ch == K_BACKSPACE) + { + *key = 'h' - 'a' + 1; + buf[0] = *key; + } + else + buf[0] = ch; } return buf; |