From 8f34835c17512d6856c5d34873625d09f33afa5e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 25 Nov 2013 10:05:05 +0000 Subject: 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 --- src/fl_shortcut.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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;} -- cgit v1.2.3