Re: KeyCode to Character mapping
Re: KeyCode to Character mapping
- Subject: Re: KeyCode to Character mapping
- From: Ken Thomases <email@hidden>
- Date: Wed, 25 Jan 2012 05:39:40 -0600
On Jan 25, 2012, at 5:03 AM, Akhil Jindal wrote:
> On Wed, Jan 25, 2012 at 1:24 PM, Ken Thomases <email@hidden> wrote:
>
>> What are you passing in for the modifiers? I would expect that passing in cmdKeyBit would result in UCKeyTranslate returning latin characters.
>
> I'm not passing in any modifiers. I've initialised inModifiers as 0.
> I tried passing in cmdKeyBit as the modifier but with that UCKeyTranslate() is returning actualLength as 0 on pressing Cmd+N on US IME itself.
Oops, sorry. I should have said "cmdKey" instead of "cmdKeyBit", and I should have also said it needs to be right-shifted by 8 bits. So, try passing cmdKey >> 8.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden