From 239489c4b885eec8c58b07f4a2285f19e906c33e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 22 Apr 2011 11:00:06 +0000 Subject: 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 --- src/Fl_compose.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Fl_compose.cxx b/src/Fl_compose.cxx index 9185188ee..f6b05f3a2 100644 --- a/src/Fl_compose.cxx +++ b/src/Fl_compose.cxx @@ -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; -- cgit v1.2.3