Re: Handling key equivalents in a controller class?
Re: Handling key equivalents in a controller class?
- Subject: Re: Handling key equivalents in a controller class?
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 16 Jul 2008 14:43:30 -0400
On Wed, Jul 16, 2008 at 2:00 PM, Jeff Johnson
<email@hidden> wrote:
> NSWindow is an NSResponder, so you could create an NSWindow subclass and
> override performKeyEquivalent: or keyDown: there.
Except what happens if a field editor is key? Then the editor
swallows all keys, including Esc. Or if it doesn't do this by
default, Esc is one of the keys that it can swallow because NSTextView
uses it as the "autocomplete" hotkey.
Didn't this question come up a while ago, and the solution was to
override the event dispatching mechanism before it even reached the
responder chain?
--Kyle Sluder
_______________________________________________
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