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

Multiple shortcuts for one button


  • Subject: Multiple shortcuts for one button
  • From: Bert Torfs <email@hidden>
  • Date: Fri, 10 Feb 2006 17:40:24 +0100

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Multiple shortcuts for one button
      • From: Uli Kusterer <email@hidden>
    • Re: Multiple shortcuts for one button
      • From: Camillo Lugaresi <email@hidden>
    • Re: Multiple shortcuts for one button
      • From: Robert Abernathy <email@hidden>
  • Prev by Date: Re: Accessing *other* applications' windows?
  • Next by Date: Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef]
  • Previous by thread: Re: Accessing *other* applications' windows?
  • Next by thread: Re: Multiple shortcuts for one button
  • Index(es):
    • Date
    • Thread