diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-05 15:55:30 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-05 15:55:30 (GMT) |
commit | 8f2c82167e603251867c131570d24ba7e4c4e507 (patch) | |
tree | 9e31a00b0b01d2e82771b72f4398ee338f05780c | |
parent | 127a4774975912ff1895ce5674a6f9debf950f7f (diff) | |
download | tk-8f2c82167e603251867c131570d24ba7e4c4e507.zip tk-8f2c82167e603251867c131570d24ba7e4c4e507.tar.gz tk-8f2c82167e603251867c131570d24ba7e4c4e507.tar.bz2 |
Fix for keyboard modifier events, thanks to Trevor Williams for patch
-rw-r--r-- | macosx/tkMacOSXKeyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXKeyboard.c b/macosx/tkMacOSXKeyboard.c index 54f99d3..7ac087d 100644 --- a/macosx/tkMacOSXKeyboard.c +++ b/macosx/tkMacOSXKeyboard.c @@ -734,7 +734,8 @@ 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; |