diff options
| author | Manolo Gouy <Manolo> | 2011-04-26 17:28:10 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-04-26 17:28:10 +0000 |
| commit | 5be46ea4ad46e754ca07c4354784a17115b42626 (patch) | |
| tree | e989181edbea0c8684a244559caa2569bd058692 /src | |
| parent | 3b768484358c6ce7cc8e769ac2bc0cd5da0b1924 (diff) | |
Added function keys F13 - F16 and corrected backslash key.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_get_key_mac.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Fl_get_key_mac.cxx b/src/Fl_get_key_mac.cxx index 7e7460a40..15f0c0dc2 100644 --- a/src/Fl_get_key_mac.cxx +++ b/src/Fl_get_key_mac.cxx @@ -35,7 +35,7 @@ // convert an FLTK (X) keysym to a MacOS symbol: // See also the inverse converter in table macKeyLookUp of Fl_cocoa.mm -// This table is in numeric order by FLTK symbol order for binary search: +// This table is in numeric order by FLTK symbol order for binary search. // The list of Mac OS virtual keycodes appears with OS 10.5 in // ...../Carbon.framework/Frameworks/HIToolbox.framework/Headers/Events.h @@ -51,11 +51,11 @@ static const struct {unsigned short vk, fltk;} vktab[] = { { 12, 'Q' }, { 15, 'R' }, { 1, 'S' }, { 17, 'T' }, { 32, 'U' }, { 9, 'V' }, { 13, 'W' }, { 7, 'X' }, { 16, 'Y' }, { 6, 'Z' }, - { 33, '[' }, { 30, ']' }, { 50, '`' }, { 42, '|' }, - { 51, FL_BackSpace }, { 48, FL_Tab }, { 36, FL_Enter }, { 127, FL_Pause }, - { 107, FL_Scroll_Lock }, { 53, FL_Escape }, { 0x73, FL_Home }, { 123, FL_Left }, + { 33, '[' }, { 30, ']' }, { 50, '`' }, { 42, '\\' }, + { 51, FL_BackSpace }, { 48, FL_Tab }, { 36, FL_Enter }, { 0x7F, FL_Pause }, + { 0x7F, FL_Scroll_Lock }, { 53, FL_Escape }, { 0x73, FL_Home }, { 123, FL_Left }, { 126, FL_Up }, { 124, FL_Right }, { 125, FL_Down }, { 0x74, FL_Page_Up }, - { 0x79, FL_Page_Down }, { 119, FL_End }, { 0x71, FL_Print }, { 127, FL_Insert }, + { 0x79, FL_Page_Down }, { 119, FL_End }, { 0x7F, FL_Print }, { 0x7F, FL_Insert }, { 0x6e, FL_Menu }, { 114, FL_Help }, { 0x47, FL_Num_Lock }, { 76, FL_KP_Enter }, { 67, FL_KP+'*' }, { 69, FL_KP+'+'}, { 78, FL_KP+'-' }, { 65, FL_KP+'.' }, { 75, FL_KP+'/' }, { 82, FL_KP+'0' }, { 83, FL_KP+'1' }, { 84, FL_KP+'2' }, { 85, FL_KP+'3' }, @@ -64,6 +64,7 @@ static const struct {unsigned short vk, fltk;} vktab[] = { { 0x7a, FL_F+1 }, { 0x78, FL_F+2 }, { 0x63, FL_F+3 }, { 0x76, FL_F+4 }, { 0x60, FL_F+5 }, { 0x61, FL_F+6 }, { 0x62, FL_F+7 }, { 0x64, FL_F+8 }, { 0x65, FL_F+9 }, { 0x6D, FL_F+10 }, { 0x67, FL_F+11 }, { 0x6f, FL_F+12 }, + { 0x69, FL_F+13 }, { 0x6B, FL_F+14 }, { 0x71, FL_F+15 }, { 0x6A, FL_F+16 }, { 0x38, FL_Shift_L }, { 0x3C, FL_Shift_R }, { 0x3B, FL_Control_L }, { 0x3E, FL_Control_R }, { 0x39, FL_Caps_Lock }, { 0x37, FL_Meta_L }, { 0x36, FL_Meta_R }, { 0x3A, FL_Alt_L }, { 0x3D, FL_Alt_R }, { 0x75, FL_Delete }, |
