On 7/28/05 6:35 AM, Florian Dejako didst favor us with:
> Dear Carbon-Dev,
>
> My WaitNextEvent-based application has compositing windows with
> standard window handlers. The problem I have is with the propagation
> of kEventTextInputUnicodeForKeyEvents.
>
> When none of the views in the windows is focused, everything works:
> When I press a key, a kEventTextInputUnicodeForKeyEvent is received
> by my WindowEventTarget (which returns eventNotHandledErr), and then
> by my ApplicationEventTarget (which also returns eventNotHandledErr).
> WaitNextEvent then rewards me with a keyDown event.
>
> If one of the views in the windows has the keyboard focus, it's
> different: kEventTextInputUnicodeForKeyEvents are received by the
> focused view, and if that returns eventNotHandledErr, propagate to
> the WindowEventTarget. Just like before, this returns
> eventNotHandledErr. Things turn sour from here on, as the
> ApplicationEventTarget never receives any
> kEventTextInputUnicodeForKeyEvent, and WaitNextEvent returns a
> nullEvent, followed by a keyUp event.
>
> The behavior is the same in Panther and Tiger, and breaks application-
> level keyboard events whenever a view is focused.
>
> Is kEventTextInputUnicodeForKeyEvent not the event I should be
> responding to for keyboard events?
> What do I need to do to fix the event propagation to the application?
What exactly do you want to do with keystrokes at the application level when
a view is focused? If the focused view is a text control, it should handle
the keystroke for you, so you must be referring to some other kind of view.
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden