• 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: Multiple shortcuts for one button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple shortcuts for one button


  • Subject: Re: Multiple shortcuts for one button
  • From: Robert Abernathy <email@hidden>
  • Date: Fri, 10 Feb 2006 16:56:35 +0000


How about putting a second "OK Button" that is one pixel big (and transparent, etc.) that has the second keystroke and is connected to the same action as the real OK?


On 10 Feb 2006, at 16:40, Bert Torfs wrote:

Hi all,

I have a sheet containing multi-line text edit fields. Pressing return when one of these is the current responder causes the carret to go to the next line in the control, which is good.
The Ok button of that sheet is mapped to the return key as well, which is standard behaviour for sheets I guess.
But when the user is in one of the multi-line edit fields and he has finished entering text, he must reach for his mouse and click the 'Ok' button in order to dismiss the sheet. Alternatively he can press a few tabs until a subview that does not eat becomes the first responder.
As my application is very data entry driven, I want to minimise the number of times the user has to switch between keyboard and mouse and the number of keystrokes the user has to perform. There fore, I would like to map the Ok button to - lets say - both command-return and return. Is there an easy way to do so?


Thanks

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40musicunfolding.com


This email sent to email@hidden



_______________________________________________ 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
References: 
 >Multiple shortcuts for one button (From: Bert Torfs <email@hidden>)

  • Prev by Date: Drawing NSAttributedString with negative leading/spacing?
  • Next by Date: Problem moving subview within superview
  • Previous by thread: Multiple shortcuts for one button
  • Next by thread: Re: Multiple shortcuts for one button
  • Index(es):
    • Date
    • Thread