diff options
| author | Manolo Gouy <Manolo> | 2011-04-22 11:00:06 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-04-22 11:00:06 +0000 |
| commit | 239489c4b885eec8c58b07f4a2285f19e906c33e (patch) | |
| tree | 39eb986d094ad5707efd2b3616a51b3130bf8db4 | |
| parent | 0f20c065ce70908e7b9827e6ed764a55042f997e (diff) | |
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
| -rw-r--r-- | src/Fl_compose.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
