Re: Command+Option+Return not sent to doCommandBySelector:
Re: Command+Option+Return not sent to doCommandBySelector:
- Subject: Re: Command+Option+Return not sent to doCommandBySelector:
- From: Ross Carter <email@hidden>
- Date: Fri, 18 Dec 2009 13:41:34 -0500
On Dec 17, 2009, at 12:16 AM, Gideon King wrote:
> I have a custom view that implements the NSTextInputClient protocol, and it successfully receives doCommandBySelector: method calls for just about every other non-text entry key combination, but Command+Option+Return just doesn't get there (or to anything else in the NSTextInputClient protocol).
>
> As an experiment, I implemented every action method I saw in the NSResponder class, in case it had been interpreted by something else which was just swallowing it, but none of those methods was being called for this key combination.
>
> Obviously I can pick it up in keyDown: if necessary, but I had hoped to not need to do that...
>
> Anybody know how I can get Command+Option+Return to call doCommandBySelector: as all the other keystrokes do?
IIRC, command-option-return is not in the standard key bindings, so there is no selector assigned to it.
There's a chart of key bindings and selectors at http://www.hcs.harvard.edu/~jrus/Site/System Bindings.html
-Ross
_______________________________________________
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