From 4e965380bc872a5da745d64a5d9deb901fa2979c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 20 Mar 2005 14:35:18 +0000 Subject: 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 --- src/fl_shortcut.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 } -- cgit v1.2.3