views:

14

answers:

0

I have a multi-line textField in a window. I need the user to be able to hit return in the textfield for its normal purpose.

I have a normal text field, that if the user hits return, I want it to just accept the text

I also have an OKButton, that, if you're not in a textfield, i want return to do the OK button.

Currently, wherever I am, return does the OKButton... how do I set this up?