diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_shortcut.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx index cab47c487..51041fe61 100644 --- a/src/fl_shortcut.cxx +++ b/src/fl_shortcut.cxx @@ -153,7 +153,7 @@ const char * fl_shortcut_label(int shortcut) { *p++ = uchar(key & 127); } else { // if none found, use the keystroke as a match: - *p++ = uchar(key); + *p++ = uchar(toupper(key & 255)); } } *p = 0; @@ -163,7 +163,7 @@ const char * fl_shortcut_label(int shortcut) { if (key == FL_Enter || key == '\r') q="Enter"; // don't use Xlib's "Return": else if (key > 32 && key < 0x100) q = 0; else q = XKeysymToString(key); - if (!q) {*p++ = uchar(key); *p = 0; return buf;} + if (!q) {*p++ = uchar(toupper(key & 255)); *p = 0; return buf;} if (p > buf) {strcpy(p,q); return buf;} else return q; #endif } |
