From 730dc6367d0970f56b3bd4e0b3bd6842ffa27443 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 15 Sep 2008 11:41:39 +0000 Subject: Ah Unicode! Using the correct UTF8 glyphs for OS X menu shortcuts. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_shortcut.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx index 38bf3857b..60ee34076 100644 --- a/src/fl_shortcut.cxx +++ b/src/fl_shortcut.cxx @@ -150,10 +150,10 @@ const char * fl_shortcut_label(int shortcut) { } #ifdef __APPLE__ // \todo Mac : we might want to change the symbols for Mac users - consider drawing Apple Symbols... . - if (shortcut & FL_SHIFT) {strcpy(p,"Shift+"); p += 6;} //: Mac hollow up arrow - if (shortcut & FL_META) {strcpy(p,"Cmd+"); p += 4;} //: Mac 'Apple' key - if (shortcut & FL_ALT) {strcpy(p,"Option+"); p += 7;} //: Mac 'Alt/Option' or fancy switch symbol - if (shortcut & FL_CTRL) {strcpy(p,"Ctrl+"); p += 5;} //: Mac ctrl key + if (shortcut & FL_SHIFT) {strcpy(p,"\xe2\x87\xa7"); p += 3;} //: Mac hollow up arrow + if (shortcut & FL_CTRL) {strcpy(p,"^"); p += 1;} //: Mac ctrl key + if (shortcut & FL_ALT) {strcpy(p,"\xe2\x8e\x87"); p += 3;} //: Mac 'Alt/Option' or fancy switch symbol + if (shortcut & FL_META) {strcpy(p,"\xe2\x8c\x98"); p += 3;} //: Mac 'Apple' key #else if (shortcut & FL_META) {strcpy(p,"Meta+"); p += 5;} if (shortcut & FL_ALT) {strcpy(p,"Alt+"); p += 4;} -- cgit v1.2.3