diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-05 15:57:17 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-05 15:57:17 (GMT) |
commit | 4c1308ad477522bc98eea3a93e4085abba195a56 (patch) | |
tree | b42af0a7b82bc476abd05209d1cf57a2e5cce789 /macosx | |
parent | 0c7da308ec523e0fc6649427d568b3133fa905e3 (diff) | |
download | tk-4c1308ad477522bc98eea3a93e4085abba195a56.zip tk-4c1308ad477522bc98eea3a93e4085abba195a56.tar.gz tk-4c1308ad477522bc98eea3a93e4085abba195a56.tar.bz2 |
Fix for keyboard modifier events, thanks to Trevor Williams for patch
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXKeyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXKeyboard.c b/macosx/tkMacOSXKeyboard.c index f776562..7579ee6 100644 --- a/macosx/tkMacOSXKeyboard.c +++ b/macosx/tkMacOSXKeyboard.c @@ -734,7 +734,7 @@ TkpGetKeySym( */ if (eventPtr->xany.send_event == -1) { - int modifier = eventPtr->xkey.keycode; + int modifier = eventPtr->xkey.keycode & NSDeviceIndependentModifierFlagsMask; if (modifier == NSCommandKeyMask) { return XK_Meta_L; |