diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-04-15 16:19:54 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-04-15 16:19:54 +0000 |
| commit | 1184d7eee6ae394a93d352fe60b6630eb444fea5 (patch) | |
| tree | ee6c05b984d734a32b5486de58304998e1ae8570 /src/fl_shortcut.cxx | |
| parent | eea06b4d6fc8a350c047bffa6c3f3b745f607b79 (diff) | |
Changed special handling on ISO characters 0x80 to 0xA0 for OS X, since this characters must be handled as standard characters here.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_shortcut.cxx')
| -rw-r--r-- | src/fl_shortcut.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx index 69e11ede5..8742b7460 100644 --- a/src/fl_shortcut.cxx +++ b/src/fl_shortcut.cxx @@ -55,7 +55,11 @@ int Fl::test_shortcut(int shortcut) { if (!shortcut) return 0; int v = shortcut & 0xffff; - if (v > 32 && v < 0x7f || v > 0xa0 && v <= 0xff) { +#ifdef __APPLE__ + if (v > 32 && v < 0x7f || v >= 0x80 && v <= 0xff) { +#else + if (v > 32 && v < 0x7f || v >= 0xa0 && v <= 0xff) { +#endif if (isupper(v)) { shortcut |= FL_SHIFT; } @@ -127,7 +131,11 @@ const char * fl_shortcut_label(int shortcut) { if (!shortcut) {*p = 0; return buf;} // fix upper case shortcuts int v = shortcut & 0xffff; - if (v > 32 && v < 0x7f || v > 0xa0 && v <= 0xff) { +#ifdef __APPLE__ + if (v > 32 && v < 0x7f || v >= 0x80 && v <= 0xff) { +#else + if (v > 32 && v < 0x7f || v >= 0xa0 && v <= 0xff) { +#endif if (isupper(v)) { shortcut |= FL_SHIFT; } |
