Re: Multiple shortcuts for one button
Re: Multiple shortcuts for one button
- Subject: Re: Multiple shortcuts for one button
- From: Camillo Lugaresi <email@hidden>
- Date: Fri, 10 Feb 2006 18:38:26 +0100
On 10/feb/06, at 17: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?
I think the standard in this case is to use the enter key (on the
numeric keypad) to activate the default button. Does it work by
default? It seems to me that it should, but I haven't tried.
Camillo
_______________________________________________
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