• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: KeyCode to Character mapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: KeyCode to Character mapping
      • From: Ken Thomases <email@hidden>
References: 
 >KeyCode to Character mapping (From: Akhil Jindal <email@hidden>)
 >Re: KeyCode to Character mapping (From: Ken Thomases <email@hidden>)
 >Re: KeyCode to Character mapping (From: Akhil Jindal <email@hidden>)
 >Re: KeyCode to Character mapping (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: KeyCode to Character mapping
  • Next by Date: Re: KeyCode to Character mapping
  • Previous by thread: Re: KeyCode to Character mapping
  • Next by thread: Re: KeyCode to Character mapping
  • Index(es):
    • Date
    • Thread