Fix long filenames, and cursor keys while editing text
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@336 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
10
clavier.c
10
clavier.c
@@ -466,6 +466,16 @@ const char * Nom_touche(word Touche)
|
||||
// Renvoie 0 s'il n'y a pas de caractère associé (shift, backspace, etc)
|
||||
word Conversion_ANSI(SDL_keysym Sym)
|
||||
{
|
||||
// This part was removed from the MacOSX port, but I put it back for others
|
||||
// as on Linux and Windows, it's what allows editing a text line with the keys
|
||||
// SDLK_LEFT, SDLK_RIGHT, SDLK_HOME, SDLK_END etc.
|
||||
#ifndef __MACOSX__
|
||||
if ( Sym.unicode == 0)
|
||||
{
|
||||
return Sym.sym;
|
||||
}
|
||||
#endif
|
||||
//
|
||||
if ( Sym.unicode > 32 && Sym.unicode < 127)
|
||||
{
|
||||
return Sym.unicode; // Pas de souci, on est en ASCII standard
|
||||
|
||||
Reference in New Issue
Block a user