Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Yes, ideally let the browser handle it, and in many but not all cases that is possible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: