[Bug 34855] Pressing 'Enter' in 'Command line arguments' moves to previous page

WineHQ Bugzilla wine-bugs at winehq.org
Thu Oct 31 11:52:42 CDT 2019


https://bugs.winehq.org/show_bug.cgi?id=34855

François Gouget <fgouget at codeweavers.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fgouget at codeweavers.com

--- Comment #1 from François Gouget <fgouget at codeweavers.com> ---
This appears to happen because that page has two <input type='submit'> buttons
in the form. Its seems HTML5 specifies that the default button is the first
'submit' button in the form which in this case is the '< Prev' button.

This means this issue also exists on the other pages except it's less visible
when there is no edit field where 'Enter' would be used (On the other pages
'Enter' typically has no effect until you press Tab which puts the focus on the
first link in the page so that pressing 'Enter' then has the obvious action.
But clicking on a checkbox or other form element and pressing 'Enter' would
again trigger the problem).

Also the TestBot CGI framework has no notion of the default 'Action' although
that's usually the last in the list. Which also means it's the last submit
button on the page.

So there are a number of solutions:
* Reverse the order of the buttons. That's not great and not always possible
(see UserList.pl).

* Perform trick to add a hidden version of the default button in the form.

* Use Javascript to intercept Enter and send trigger the expected action.

See:
https://stackoverflow.com/questions/925334/how-is-the-default-submit-button-on-an-html-form-determined

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list