Book him Officer! O.
On 2010-10-16, at 21:05, Ryan Florence wrote: > Usability police! I just hope your not breaking user expectations here. > When I press enter in a text field and the form doesn't submit, I get grumpy. > > Sent from my iPhone > > On Oct 16, 2010, at 11:35 AM, Tim Wienk <[email protected]> wrote: > >> Works fine in a text-input as well, as long as you prevent the default >> action of the event (which would be to submit the form): >> >> http://www.jsfiddle.net/DEdb4/1/ >> >> Also note you don't have to check by keycode, `event.key` will be set >> to something more human readable.
