summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2013-11-25 10:05:05 +0000
committerManolo Gouy <Manolo>2013-11-25 10:05:05 +0000
commit8f34835c17512d6856c5d34873625d09f33afa5e (patch)
treebda29aa822d22601f1ba647c2c274d47196ea1d2
parent6b67e50cbee9db2f15ed3b0f037a3d90aafdc1aa (diff)
Explicit what unicode characters represent keyboard modifiers in menus on the Mac platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/fl_shortcut.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx
index 3d5db5016..d3179e2bc 100644
--- a/src/fl_shortcut.cxx
+++ b/src/fl_shortcut.cxx
@@ -189,11 +189,11 @@ const char* fl_shortcut_label(unsigned int shortcut, const char **eom) {
shortcut |= FL_SHIFT;
}
#ifdef __APPLE__
- // this column contains utf8 characters - v
- if (shortcut & FL_SHIFT) {strcpy(p,"\xe2\x87\xa7"); p += 3;} // upwards white arrow
- if (shortcut & FL_CTRL) {strcpy(p,"\xe2\x8c\x83"); p += 3;} // up arrowhead
- if (shortcut & FL_ALT) {strcpy(p,"\xe2\x8c\xa5"); p += 3;} // alternative key symbol
- if (shortcut & FL_META) {strcpy(p,"\xe2\x8c\x98"); p += 3;} // place of interest sign
+ // this column contains utf8 characters - v
+ if (shortcut & FL_SHIFT) {strcpy(p,"\xe2\x87\xa7"); p += 3;} // U+21E7 (upwards white arrow)
+ if (shortcut & FL_CTRL) {strcpy(p,"\xe2\x8c\x83"); p += 3;} // U+2303 (up arrowhead)
+ if (shortcut & FL_ALT) {strcpy(p,"\xe2\x8c\xa5"); p += 3;} // U+2325 (option key)
+ if (shortcut & FL_META) {strcpy(p,"\xe2\x8c\x98"); p += 3;} // U+2318 (place of interest sign)
#else
if (shortcut & FL_META) {strcpy(p,"Meta+"); p += 5;}
if (shortcut & FL_ALT) {strcpy(p,"Alt+"); p += 4;}