Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alt modifier + letter



Hi,
I'd need to know which key was pressed together with the alt modifier when a keyboard event arrives also from different keyboard layout (for example in the Italian keyboard the Z is found in the place of the W and viceversa). I need just the original key pressed and not the character already modified by the alt (which for alt W is an uppercase sigma but I just need to know that the W has been pressed with the alt key).


I found this hint

 UInt32 key;
 GetEventParameter(origEvent, kEventParamKeyCode,
     typeUInt32, NULL, sizeof(key), NULL, &key);

but this gives a key code which does not depend on the keyboard (so I can't tell the Z of the Italian keyboard from the W of the American one)
Anyone can help me?
Thanks
Antonella


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.