diff options
author | Jeremy Huddleston <jeremy@yuffie.local> | 2009-02-24 23:12:57 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@yuffie.local> | 2009-02-24 23:14:01 -0800 |
commit | d6976e1436c035b8e4a6d1e10971b083b1b4184b (patch) | |
tree | 7e65ac9612bbb2141971ca07fe1e3c2cd29a0e48 /hw/xquartz/darwinEvents.c | |
parent | 4b63f88b0ad5f6614fee5b7af4f97ce4581ab935 (diff) |
XQuartz: Re-enable support for capslock
(cherry picked from commit 4901b8147e593d26d7a31a9b73a201254b948916)
Diffstat (limited to 'hw/xquartz/darwinEvents.c')
-rw-r--r-- | hw/xquartz/darwinEvents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c index 2dc048278..7f0ff7e88 100644 --- a/hw/xquartz/darwinEvents.c +++ b/hw/xquartz/darwinEvents.c @@ -154,6 +154,7 @@ int darwin_modifier_mask_list[] = { #else NX_CONTROLMASK, NX_SHIFTMASK, NX_COMMANDMASK, NX_ALTERNATEMASK, #endif + NX_ALPHASHIFTMASK, 0 }; @@ -173,7 +174,7 @@ static void DarwinUpdateModifiers( } for(f=darwin_modifier_mask_list; *f; f++) - if(*f & flags) { + if(*f & flags && *f != NX_ALPHASHIFTMASK) { key = DarwinModifierNXMaskToNXKey(*f); if(key == -1) ErrorF("DarwinUpdateModifiers: Unsupported NXMask: 0x%x\n", *f); |