Fix STR #2608: the bug had been introduced by r.8552 to solve STR #2598.

The new code makes the STR #2598 changes unix-specific so it does not
interact with the WIN32 platform.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-04-22 11:00:06 +00:00
parent 0f20c065ce
commit 239489c4b8

View File

@ -64,6 +64,9 @@ int Fl::compose(int& del) {
Fl::e_keysym == FL_Tab || Fl::e_keysym == FL_Escape || Fl::e_state&(FL_META | FL_CTRL) ) {
return 0;
}
#elif defined(WIN32)
unsigned char ascii = (unsigned)e_text[0];
if ((e_state & (FL_ALT | FL_META)) && !(ascii & 128)) return 0;
#else
unsigned char ascii = (unsigned)e_text[0];
if ((e_state & (FL_ALT | FL_META | FL_CTRL)) && !(ascii & 128)) return 0;