I need to limit the user's options and make them enter the "submit" phase and not "ended"

Pertaining to textfields, the only way I want to allow my user to leave the textfield they have just “began” is to hit the return key to “submit”.

If more information is needed, my problem right now is that if they click on a second textfield in order to leave the first textField, then the “ended” interferes because it “ended” the first textfield, “began” the second textField, and then removes the keyboard focus on the second textfield. So I figure the way to fix my problem is to not allow them to ever use the “ended” phase to leave to another textField. Or somehow stop the keyboardfocus from leaving the second textField.

Thanks for the help! [import]uid: 35535 topic_id: 33541 reply_id: 333541[/import]

Or I was thinking if it’s at all possible to have the listener for the second textfield only work under certain parameters? For instance object: addEventListener (“userInput”, Function 1, if statement == true). Just thinking out loud. I couldn’t find anything related in the APIs though. [import]uid: 35535 topic_id: 33541 reply_id: 133384[/import]

I believe if you set keyboard focus to nil on your tap listener for the second field (all fields actually) BEFORE beginning the edit, the end phase of the first/current field will be called before the second field receives the begin phase… (So basically, always call set focus nil before starting the edit to ensure the previous one ends).

Getting slick text editing on multiple fields isn’t easy with corona… But on the plus side, you’ve got pretty unlimited capability with it broken down this finely. [import]uid: 79933 topic_id: 33541 reply_id: 133389[/import]

Or I was thinking if it’s at all possible to have the listener for the second textfield only work under certain parameters? For instance object: addEventListener (“userInput”, Function 1, if statement == true). Just thinking out loud. I couldn’t find anything related in the APIs though. [import]uid: 35535 topic_id: 33541 reply_id: 133384[/import]

I believe if you set keyboard focus to nil on your tap listener for the second field (all fields actually) BEFORE beginning the edit, the end phase of the first/current field will be called before the second field receives the begin phase… (So basically, always call set focus nil before starting the edit to ensure the previous one ends).

Getting slick text editing on multiple fields isn’t easy with corona… But on the plus side, you’ve got pretty unlimited capability with it broken down this finely. [import]uid: 79933 topic_id: 33541 reply_id: 133389[/import]