Re: Key event data not available in eventRef
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