MacOSX: Fixed a bug in the filenames input and another one with the backspace key not being sent.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@270 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Franck Charlet
2008-10-16 21:55:29 +00:00
parent 6a778031fe
commit f4e81048ab
7 changed files with 248 additions and 76 deletions

View File

@@ -535,9 +535,18 @@ word Conversion_ANSI(SDL_keysym Sym)
case 0xC600:
return 'ã'; // ã
}
// Touche entre 127 et 255
if (Sym.unicode<256)
{
#ifdef __macosx__
// fc: Looks like there's a mismatch with delete & backspace
// i don't why SDLK_DELETE was returned instead of SDLK_BACKSPACE
if(Sym.unicode == 127)
{
return(SDLK_BACKSPACE);
}
#endif
return Sym.unicode;
}
// Sinon c'est une touche spéciale, on retourne son scancode