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

You do know that handling enter by submitting the form is the default behavior if you do absolutely nothing? You actually have to go out of your way to override that and suppress it.

Sometimes it makes sense to do something else instead, but if so, you should handle it in a sane way and actually do that something else. Not just suppress it.



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

Search: