Re: keyboard events
Re: keyboard events
- Subject: Re: keyboard events
- From: David Rio Deiros <email@hidden>
- Date: Tue, 11 Sep 2007 20:26:17 -0700
On Tue, Sep 11, 2007 at 12:44:17PM +0100, Alastair Houghton wrote:
> On 9 Sep 2007, at 06:13, David Rio Deiros wrote:
>
> >I have a very basic cocoa application that has an NSTextField, a
> >couple of buttons and a scroll view.
> >The user enters some word in the textfield, then clicks one of the
> >buttons and the application writes
> >something to the scroll view. The other button just cleans the
> >scroll view.
> >
> >The application works fine, but now I want to add some code so
> >after entering the word the user can
> >hit <enter> and then the results get generated in the scroll view
> >(same as if he/she press the "execute"
> >button).
> Do you have a default button on the window already?
No.
> If not, a simple
> solution might be to set the shortcut for the "Execute" button to
> Return (in Interface Builder).
Well... I would like the user to hit "enter", I don't think I can assign
that shortcut.
David
_______________________________________________
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