• 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: Key event data not available in eventRef
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key event data not available in eventRef


  • Subject: Re: Key event data not available in eventRef
  • From: "Mills, Steve" <email@hidden>
  • Date: Tue, 04 Mar 2014 20:18:56 +0000
  • Thread-topic: Key event data not available in eventRef

On Mar 4, 2014, at 13:51:31, Eric Schlegel <email@hidden> wrote:

> A little architectural background first: normally, when a keyboard event first arrives in the HIToolbox event queue from the window server, the initial contents are just as you saw - a keycode and key modifiers, but no unicode values. The unicode text doesn’t get added until later when the key event is put into the event queue and the Text Services Manager takes a look at it and processes the key event through the active input method.
>
> In this case, if the NSEvent needs to cons up an EventRef from its own data, it probably just creates a kEventRawKeyDown with keycode but nothing else. No unicode text is added because the event isn’t seen by TSM.

Huh, weird. Too bad the docs don't say anything about this peculiarity. Guess I'll just look at the key code.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255


_______________________________________________

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: Key event data not available in eventRef
      • From: Kyle Sluder <email@hidden>
References: 
 >Key event data not available in eventRef (From: "Mills, Steve" <email@hidden>)
 >Re: Key event data not available in eventRef (From: "Mills, Steve" <email@hidden>)
 >Re: Key event data not available in eventRef (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Re: Key event data not available in eventRef
  • Next by Date: Running an NSApplication from a test case
  • Previous by thread: Re: Key event data not available in eventRef
  • Next by thread: Re: Key event data not available in eventRef
  • Index(es):
    • Date
    • Thread