summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-04-05 06:46:41 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-04-05 06:46:41 +0000
commite37577eeb88a44d61671e700f14ab5233dfa9c72 (patch)
treee286f250a1298e2d03b47aa0c2c89109ec69e314
parent0d32b63ea38d127c8e58815946061be79891206b (diff)
Removed UTF-8 code from header file because it confuses some command line tools (specifically 'sed').
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/fl_shortcut.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx
index fa835b15d..013149d23 100644
--- a/src/fl_shortcut.cxx
+++ b/src/fl_shortcut.cxx
@@ -129,36 +129,36 @@ static Keyname table[] = {
static Keyname table[] = {
// v - this column contains utf8 characters
{' ', "Space"},
- {FL_BackSpace,"\xe2\x8c\xab"}, // ⌫ erase to the left
- {FL_Tab, "\xe2\x87\xa5"}, // ⇥ rightwards arrow to bar
- {0xff0b, "\xe2\x8c\xa6"}, // ⌦ erase to the right
- {FL_Enter, "\xe2\x86\xa9"}, // ↩ leftwards arrow with hook
+ {FL_BackSpace,"\xe2\x8c\xab"}, // erase to the left
+ {FL_Tab, "\xe2\x87\xa5"}, // rightwards arrow to bar
+ {0xff0b, "\xe2\x8c\xa6"}, // erase to the right
+ {FL_Enter, "\xe2\x86\xa9"}, // leftwards arrow with hook
{FL_Pause, "Pause"},
{FL_Scroll_Lock, "Scroll_Lock"},
{FL_Escape, "\xe2\x90\x9b"},
- {FL_Home, "\xe2\x86\x96"}, // ↖ north west arrow
- {FL_Left, "\xe2\x86\x90"}, // ← leftwards arrow
- {FL_Up, "\xe2\x86\x91"}, // ↑ upwards arrow
- {FL_Right, "\xe2\x86\x92"}, // → rightwards arrow
- {FL_Down, "\xe2\x86\x93"}, // ↓ downwards arrow
- {FL_Page_Up, "\xe2\x87\x9e"}, // ⇞ upwards arrow with double stroke
- {FL_Page_Down,"\xe2\x87\x9f"}, // ⇟ downward arrow with double stroke
- {FL_End, "\xe2\x86\x98"}, // ↘ south east arrow
+ {FL_Home, "\xe2\x86\x96"}, // north west arrow
+ {FL_Left, "\xe2\x86\x90"}, // leftwards arrow
+ {FL_Up, "\xe2\x86\x91"}, // upwards arrow
+ {FL_Right, "\xe2\x86\x92"}, // rightwards arrow
+ {FL_Down, "\xe2\x86\x93"}, // downwards arrow
+ {FL_Page_Up, "\xe2\x87\x9e"}, // upwards arrow with double stroke
+ {FL_Page_Down,"\xe2\x87\x9f"}, // downward arrow with double stroke
+ {FL_End, "\xe2\x86\x98"}, // south east arrow
{FL_Print, "Print"},
{FL_Insert, "Insert"},
{FL_Menu, "Menu"},
{FL_Num_Lock, "Num_Lock"},
- {FL_KP_Enter, "\xe2\x8c\xa4"}, // ⌤ up arrow head between two horizontal bars
+ {FL_KP_Enter, "\xe2\x8c\xa4"}, // up arrow head between two horizontal bars
{FL_Shift_L, "Shift_L"},
{FL_Shift_R, "Shift_R"},
{FL_Control_L,"Control_L"},
{FL_Control_R,"Control_R"},
- {FL_Caps_Lock,"\xe2\x87\xaa"}, // ⇪ upwards white arrow from bar
+ {FL_Caps_Lock,"\xe2\x87\xaa"}, // upwards white arrow from bar
{FL_Meta_L, "Meta_L"},
{FL_Meta_R, "Meta_R"},
{FL_Alt_L, "Alt_L"},
{FL_Alt_R, "Alt_R"},
- {FL_Delete, "\xe2\x8c\xa7"} // ⌧ x in a rectangle box
+ {FL_Delete, "\xe2\x8c\xa7"} // x in a rectangle box
};
#endif
@@ -198,10 +198,10 @@ const char* fl_shortcut_label(unsigned int shortcut, const char **eom) {
}
#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
+ 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
#else
if (shortcut & FL_META) {strcpy(p,"Meta+"); p += 5;}
if (shortcut & FL_ALT) {strcpy(p,"Alt+"); p += 4;}