Re: KeyCode to Character mapping
Re: KeyCode to Character mapping
- Subject: Re: KeyCode to Character mapping
- From: Akhil Jindal <email@hidden>
- Date: Wed, 25 Jan 2012 17:21:45 +0530
On Wed, Jan 25, 2012 at 5:09 PM, Ken Thomases <email@hidden> wrote:
> 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.
>
Yes. That worked!
Thanks a ton. I had spend so much time trying to figure this out.
Could you point me to any documentation regarding this?
> 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