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 | c5ff938e4a4573d9b42da8dcce7df2e788ef5c10 (patch) | |
tree | 3f15a1ed904bd8d1e6b508f74abb3b61c717d9b6 | |
parent | b94572e2fc25dcd3b2c574d04a1d5a5003494635 (diff) | |
download | tk-c5ff938e4a4573d9b42da8dcce7df2e788ef5c10.zip tk-c5ff938e4a4573d9b42da8dcce7df2e788ef5c10.tar.gz tk-c5ff938e4a4573d9b42da8dcce7df2e788ef5c10.tar.bz2 |
Fix for keyboard modifier events, thanks to Trevor Williams for patch
-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; |