diff options
author | culler <culler> | 2020-05-12 13:21:44 (GMT) |
---|---|---|
committer | culler <culler> | 2020-05-12 13:21:44 (GMT) |
commit | 4f9c5061a9037f3b854ae6046f5454578abc5707 (patch) | |
tree | 7791153896018f927a47d8f7048a5a7bdaec601d /macosx/tkMacOSXKeysyms.h | |
parent | dd7e4b7700686259339f93257093efd65cc8b2c5 (diff) | |
download | tk-4f9c5061a9037f3b854ae6046f5454578abc5707.zip tk-4f9c5061a9037f3b854ae6046f5454578abc5707.tar.gz tk-4f9c5061a9037f3b854ae6046f5454578abc5707.tar.bz2 |
Deal with the Menu key and possibly other keys that Apple does not use.
Diffstat (limited to 'macosx/tkMacOSXKeysyms.h')
-rw-r--r-- | macosx/tkMacOSXKeysyms.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/macosx/tkMacOSXKeysyms.h b/macosx/tkMacOSXKeysyms.h index 281b5e7..726f318 100644 --- a/macosx/tkMacOSXKeysyms.h +++ b/macosx/tkMacOSXKeysyms.h @@ -85,7 +85,7 @@ static const KeyInfo keyArray[] = { {106, XK_F16, NSF16FunctionKey}, {107, XK_F14, NSF14FunctionKey}, {109, XK_F10, NSF10FunctionKey}, - {110, XK_Menu, XK_Menu}, + {110, XK_Menu, UNKNOWN_KEYCHAR}, {111, XK_F12, NSF12FunctionKey}, {113, XK_F15, NSF15FunctionKey}, {114, XK_Help, NSHelpFunctionKey}, @@ -105,8 +105,11 @@ static const KeyInfo keyArray[] = { }; /* - * X11 keysyms for modifier keys, in order. This list includes keys which - * do not appear on Apple keyboards, such as Shift_Lock and Super_R. + * X11 keysyms for modifier keys, in order. This list includes keys + * which do not appear on Apple keyboards, such as Shift_Lock and + * Super_R. While most systems don't provide events for the "fn" + * function key, Apple does. We map it to Super_L when processing a + * FlagsChanged NSEvent. */ #define NUM_MOD_KEYCODES 14 |