diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-20 14:35:18 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-03-20 14:35:18 +0000 |
| commit | 4e965380bc872a5da745d64a5d9deb901fa2979c (patch) | |
| tree | 5ef32ff39f7dc9fb50476c1623c131bc9c64599d /src | |
| parent | a4786598bbb997fd0909a1113d70e53777ddaeb8 (diff) | |
Use uppercase letters for shortcut labels (e.g. "Ctrl+N", not
"Ctrl+n") to be consistent with other toolkits.
Remove debug printf from undo_checkpoint().
Change "Show Widget Panel" to "Show Properties" since it displays any
Fl_Type dialog, not just the widget panel.
Add "properties" to all of the type dialogs (UI consistency)
Remove extra elipsis (...) from code items in the new menu.
Revert Grid shortcut to Ctrl+G, since Alt+G is used to run a shell
command again.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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 } |
