summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXKeyboard.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-05 15:57:17 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-05 15:57:17 (GMT)
commit4c1308ad477522bc98eea3a93e4085abba195a56 (patch)
treeb42af0a7b82bc476abd05209d1cf57a2e5cce789 /macosx/tkMacOSXKeyboard.c
parent0c7da308ec523e0fc6649427d568b3133fa905e3 (diff)
downloadtk-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/tkMacOSXKeyboard.c')
-rw-r--r--macosx/tkMacOSXKeyboard.c2
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;