Hi Ilya,

As far as I know, this is standard browser/form behavior, regardless of the
web framework you are using (Tapestry, PHP, etc).  You can use JavaScript
to change the behavior or CSS to do tricky things, like move the positions
of the submit buttons when they render so that the one you want to submit
on Enter is first in the DOM, but can be elsewhere on the screen.

mrg



On Thu, Apr 17, 2014 at 8:14 AM, Ilya Obshadko <ilya.obsha...@gmail.com>wrote:

> I have an interesting question: what happens exactly when user presses
> Enter inside a TextField?
>
> Currently I see that form submit works as if it was triggered by the first
> available Submit element (in order those elements appear in the form). I
> don't think this is correct, but I don't have any idea (yet) how to handle
> it otherwise.
>
> Any thoughts?
>
>
> --
> Ilya Obshadko
>

Reply via email to