E-mail List Archives
Re: Form submission via enter key?
From: Paul J. Adam
Date: Nov 6, 2013 7:40AM
- Next message: Paul J. Adam: "Re: Usage of title attribute or hidden label"
- Previous message: Jennifer Sutton: "Fwd: Call for Review: WAI-ARIA User Agent Implementation Guide - Last Call Working Draft"
- Next message in Thread: Corbett, James: "Re: Form submission via enter key?"
- Previous message in Thread: Patrick H. Lauke: "Re: Form submission via enter key?"
- View all messages in this Thread
The default behavior is to use the ENTER key when focused inside any of the form inputs, this fires the onSubmit event. No reason to change that. What you should not be doing, and a bug Ive seen before, is allowing an ENTER key event to submit the form when they are NOT focused inside an input.
So ENTER should only work to Submit the form when focused inside one of the forms inputs.
Paul J. Adam
Accessibility Evangelist
www.deque.com
On Nov 6, 2013, at 12:12 AM, Nathalie Sequeira < <EMAIL REMOVED> > wrote:
> Thank you all very much for your feedback!
>
> I am quite reassured now that submission via enter key needs to be
> disabled altogether in this case, even where default HTML behaviour
> would allow it.
> Then, the form can only be submitted via the submit button (the exact
> opposite of what the client wants - haha, it's going to be fun selling
> that to them ;D ).
>
> I am also thinking of collapsing the fieldset with instrument checkboxes
> by default (which will also help declutter the form), so one needn't tab
> through all those options to get to the submit button.
>
> Thanks also Detlev for the heads up regarding button states, I will look
> into that too.
>
> Cheers!
> Nathalie
>
> > >
- Next message: Paul J. Adam: "Re: Usage of title attribute or hidden label"
- Previous message: Jennifer Sutton: "Fwd: Call for Review: WAI-ARIA User Agent Implementation Guide - Last Call Working Draft"
- Next message in Thread: Corbett, James: "Re: Form submission via enter key?"
- Previous message in Thread: Patrick H. Lauke: "Re: Form submission via enter key?"
- View all messages in this Thread