summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@yuffie.local>2009-02-24 23:12:57 -0800
committerJeremy Huddleston <jeremy@yuffie.local>2009-02-24 23:12:57 -0800
commit4901b8147e593d26d7a31a9b73a201254b948916 (patch)
tree9bad768b79c8878403572b02ee7acd8c85baf86a
parent9f6e855f4e861e44ea6b252c92c4a32b22c364bb (diff)
XQuartz: Re-enable support for capslock
-rw-r--r--hw/xquartz/darwinEvents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c
index 45995be29..f66345788 100644
--- a/hw/xquartz/darwinEvents.c
+++ b/hw/xquartz/darwinEvents.c
@@ -155,6 +155,7 @@ int darwin_modifier_mask_list[] = {
#else
NX_CONTROLMASK, NX_SHIFTMASK, NX_COMMANDMASK, NX_ALTERNATEMASK,
#endif
+ NX_ALPHASHIFTMASK,
0
};
@@ -174,7 +175,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);