Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kEventTextInputUnicodeForKeyEvent Propagation?



On 7/29/05 12:50 PM, Florian Dejako didst favor us with:

>> Basically, you want to prevent the standard handler from running in
>> this case. You can do that by installing a UnicodeForKeyEvent
>> handler yourself on the window, and returning
>> eventPassToNextTargetErr. That will cause the event to skip over
>> any remaining handlers on the window (including the standard
>> handler), and be dispatched to the next target, which is the app
>> target.
> 
> This fixes most of the problems. Unfortunately, this breaks the
> StandardWindowEventHandler's automatic handling of Enter/Escape for
> default/cancel buttons in dialogs. I guess I could handle those
> myself, though.

You can return eventNotHandledErr for any keystrokes you want to let the
standard handler process.

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

References: 
 >Re: kEventTextInputUnicodeForKeyEvent Propagation? (From: Florian Dejako <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.