summaryrefslogtreecommitdiff
path: root/src/fl_shortcut.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-04-17 17:56:05 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-04-17 17:56:05 +0000
commite682ec63392c413db5a7bfa00fd092dbf07bc4d3 (patch)
tree3e3eeea891e4563fd50d6d4f3868b3f2dcce85f3 /src/fl_shortcut.cxx
parent1184d7eee6ae394a93d352fe60b6630eb444fea5 (diff)
Allowing characters between 0x80 and 0x9f to be enetered into Fl_Input_ derived widgets. Although these were not defined in the western ISO code page, they seem to be implemented in most X11 drivers now as MSWindows Latin-1. For example, the Euro symbol is at 0x80. It should now be possible to enter the Euro sign and other chars in this range correctly. Please verify.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_shortcut.cxx')
-rw-r--r--src/fl_shortcut.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx
index 8742b7460..34c9d4dde 100644
--- a/src/fl_shortcut.cxx
+++ b/src/fl_shortcut.cxx
@@ -58,7 +58,8 @@ int Fl::test_shortcut(int shortcut) {
#ifdef __APPLE__
if (v > 32 && v < 0x7f || v >= 0x80 && v <= 0xff) {
#else
- if (v > 32 && v < 0x7f || v >= 0xa0 && v <= 0xff) {
+ // most X11 use MSWindows Latin-1 if set to Western encoding, so 0x80 to 0xa0 are defined
+ if (v > 32 && v < 0x7f || v >= 0x80 && v <= 0xff) {
#endif
if (isupper(v)) {
shortcut |= FL_SHIFT;