[RESOLVED] How to trigger newTextFIeld "userInput" trigger

I am working on an app with a search box feature, but I cannot get the listener to trigger on my device unless I put a second textField in and click on that before hitting submit. I’ve tried hitting “done” on the keyboard before clicking search, but it doesn’t seem to be working. Is there another way to trigger this function?

Sean [import]uid: 157382 topic_id: 32082 reply_id: 332082[/import]

With Android, hitting the “Done” key on the keyboard doesn’t trigger the event. However, hitting the “Return” key in iOS does. Was hoping to not have to put a “SET” button beside the text box or something, anyone know if the Widget Candy text input feature works any better?

Sean [import]uid: 157382 topic_id: 32082 reply_id: 127841[/import]

With Android, hitting the “Done” key on the keyboard doesn’t trigger the event. However, hitting the “Return” key in iOS does. Was hoping to not have to put a “SET” button beside the text box or something, anyone know if the Widget Candy text input feature works any better?

Sean [import]uid: 157382 topic_id: 32082 reply_id: 127841[/import]

In case anyone else is struggling with this, here is how I fixed it. In the function for the widget button I am clicking, I put a native.setKeyboardFocus( nil ). I then put a timer.performWithDelay for 100ms with the function to switch to the search page. I found that having a separate button with the keyboard focus set was was enough to get the variable to set, but without the delay my search button still didn’t work. Might be able to get away with a shorter delay time, but I found that 100ms was more than acceptable. [import]uid: 157382 topic_id: 32082 reply_id: 128072[/import]

In case anyone else is struggling with this, here is how I fixed it. In the function for the widget button I am clicking, I put a native.setKeyboardFocus( nil ). I then put a timer.performWithDelay for 100ms with the function to switch to the search page. I found that having a separate button with the keyboard focus set was was enough to get the variable to set, but without the delay my search button still didn’t work. Might be able to get away with a shorter delay time, but I found that 100ms was more than acceptable. [import]uid: 157382 topic_id: 32082 reply_id: 128072[/import]