• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Command+Option+Return not sent to doCommandBySelector:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Command+Option+Return not sent to doCommandBySelector:
      • From: Gideon King <email@hidden>
References: 
 >Command+Option+Return not sent to doCommandBySelector: (From: Gideon King <email@hidden>)

  • Prev by Date: Re: Detecting system protected folders.
  • Next by Date: Re: Dependent values that are not iVars
  • Previous by thread: Command+Option+Return not sent to doCommandBySelector:
  • Next by thread: Re: Command+Option+Return not sent to doCommandBySelector:
  • Index(es):
    • Date
    • Thread