Closing a window with a textview using keyboard
Closing a window with a textview using keyboard
- Subject: Closing a window with a textview using keyboard
- From: Knut Lorenzen <email@hidden>
- Date: Sun, 09 Sep 2007 22:18:29 +0200
- Thread-topic: Closing a window with a textview using keyboard
I have a window that contains an NSTextView and an NSButton of type Push
Button, whose Key Equiv. is set to "Return" ("\R") in Interface Builder in
order to serve as the default button (closing the window) when hitting
<return>.
Of course, as soon as the textview gets the focus, pressing <return> results
in a new line in the textview.
How does one resolve this dilemma? My 1st idea was to use <enter> instead of
<return>, but how do I set this in Interface Builder?
Cheers,
Knut
_______________________________________________
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