Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bastawhiz
on July 14, 2023
|
parent
|
context
|
favorite
| on:
Keyboards and web apps, my post/rant for the year
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
on July 15, 2023
[–]
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: