How can I make the Enter key act like the Tab key for single-line input TextFields ?
I am writing an application in Actionscript3 (Flash). In the application I have a number of single-line text fields (user name, password, description etc). Some pages just have one such field, some have three or four.
My client wants the users to able to finish text entry in one (single-line) field and move to the next field by pressing the Enter key, just like Tab.
At present, pressing the Enter key while a single-line textfield has focus, does nothing. As far as I can tell, the Enter key does not create a TEXT_INPUT event (and neither does the Tab key).
However if I change the textfield to multiline, and then prevent the default action, I can at least catch the Enter key. Then the problem comes how to move the focus to the next field. (I was hoping to avoid the FocusManager). But is that the best way to go ?
What I really want to do is just turn an Enter keypress into a Tab key in some circumstances.
As ever, I cant help feeling that this must be a very common requirement and that there must be a well-known solution.
Any help much appreciated.