Skip to Content

XML and JS ontroller for button on event when Press "enter"

Aug 29, 2017 at 04:18 AM


avatar image
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Irfan Gokak Aug 29, 2017 at 08:15 AM


Do you want to trigger event on click of enter in Input field?

If so, then add change event on input field from where you want to trigger the event. or else you have extend the input control and attach this event based on key.


Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Irfan,

Thanks for your reply.You got it right that i want to triger with enter Control but i did'nt get your Point right.can you please explain.

Best Regards


Like you have assigned an event for button(press="click"), for the input field you can assign the same handle click but for event submit i.e (submit="click"). So the activity which happens on click of button will happen when user presses enter on input field.


Thanks alot guys.This worked.but now the Problem is that whatever i type in text Input field after passing this to message strips it also remain on Textfield as well, have to erase it before writing a new message.


Hey try clearing using oInput.setText("") after passing to message strips. oInput will be the id of your Input .