Mailing Lists: Apple Mailing Lists

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

Re: alt modifier + letter




On Jan 31, 2007, at 6:21 AM, Antonella Russo wrote:

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).

You need to use the KeyTranslate or UCKeyTranslate functions to run the raw keycode through keyboard translation a second time, without the option key modifier pressed, and see what character code is generated.


-eric

_______________________________________________
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
References: 
 >alt modifier + letter (From: Antonella Russo <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.