Re: keyDown:not receiving Command + key events, space bar, left/right arrows
Re: keyDown:not receiving Command + key events, space bar, left/right arrows
- Subject: Re: keyDown:not receiving Command + key events, space bar, left/right arrows
- From: Satoshi Matsumoto <email@hidden>
- Date: Thu, 03 Mar 2005 09:53:56 +0900
Sorry!!
I mistook copy & paste.
on 05.3.3 9:45 AM, Vince DeMarco at email@hidden wrote:
>>> does anyone know why keyDown isn't triggered for those keys? All
>>> other
>>> keys seems to work fine. By the way, aside from Command Q and Command
>>> W, the main menu doesn't have any shortcuts.
>>
>> You can catch all events at the following method in NSApplication
>> class.
>>
>> - (BOOL)sendAction:(SEL)anAction to:(id)aTarget from:(id)sender
>>
>
> This is only used to send target/action methods not keyDown: etc.
> methods.
You can catch all events at the following method in NSApplication class.
- (void)sendEvent:(NSEvent *)theEvent;
Try customizing NSApplication class and over-riding it.
Satoshi Matsumoto
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden