makeFirstResponder and Enter
makeFirstResponder and Enter
- Subject: makeFirstResponder and Enter
- From: Adam Ruth <email@hidden>
- Date: Fri, 31 Dec 2004 17:28:56 -0700
I have a window that has two text fields on it and a button with a key
equivalent of Enter. When the user clicks the button, the window is
validated and if either of the text fields don't pass validation a
notice is popped up and then focus is put to the offending text field
with makeFirstResponder. The only problem is if the user is in the
other text field and they press Enter then focus moves to the other
text field momentarily (what I want) but then returns to the original
field, presumably to finish processing the Enter event. I'm not sure
how to make focus stay where I want it to.
Thanks in advance,
Adam Ruth
_______________________________________________
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