Skip to Content
0

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

Aug 29, 2017 at 04:18 AM

73

avatar image
Former Member
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Irfan Gokak Aug 29, 2017 at 08:15 AM
0

Hi,

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.

Cheers!!!

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

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

0

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.

0
Former Member

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.

0
Former Member

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

0