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 | 5f961d6db279cc41ddc98a0abf1668eb3adc60e0 (patch) | |
tree | b42af0a7b82bc476abd05209d1cf57a2e5cce789 /macosx | |
parent | 6082edb015ebf4366f8a03bdb11bb85e9c0df624 (diff) | |
download | tk-5f961d6db279cc41ddc98a0abf1668eb3adc60e0.zip tk-5f961d6db279cc41ddc98a0abf1668eb3adc60e0.tar.gz tk-5f961d6db279cc41ddc98a0abf1668eb3adc60e0.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; |