5 ms·
There's a better solution: wrap your inputs in a form element and rely on the submit event rather than a keyboard event. The browser knows (or should know!) if
by bastawhiz 3y ago
There's a better solution: wrap your inputs in a form element and rely on the submit event rather than a keyboard event. The browser knows (or should know!) if the user intends to submit or not.
- dwg 3y agoYes, ideally let the browser handle it, and in many but not all cases that is possible.