You need to sign in to do that
Don't have an account?
Penelope
Call a function in the controller on enter keypress in Lightning?
How do you call a function in the controller/click a button when the user presses the enter key? I have a form with a submit button, all inside the same component. Thanks!
You could do it the old fashioned way:
FormController.js FormHelper.jsForm.cmp
All Answers
You could do it the old fashioned way:
FormController.js FormHelper.jsForm.cmp
you need to write
I thought of the same solution you described. Strangly enough I'm getting in the Helper method, but in the end somehow the Controllers doInit function is called again. Perhaps you dealt with this problem to.
Regards,
Raymond