Is there an idiomatic way for me trigger my formlet’s submit action when a keydown event is pressed?
Should I drop back down to DOM manipulation, or is there some Enhancement that I can use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately, at the moment there is no standard way to do this. We do intend to add it in a future version though, either as an
Enhancecombinator or as a new option toEnhance.WithCustomSubmit*.We actually encountered the same problem when creating FPish, and we use the following workaround:
Note that it triggers the first button in the form, so you might need adjustments to the jQuery selector to make it actually trigger the submit button.