stevenyvr987 / overdrive-evergreen-opac

Automatically exported from code.google.com/p/overdrive-evergreen-opac
0 stars 0 forks source link

In action dialogue, always auto-focus on submit button #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In our use of the dialogue widget, if there are any input fields in the form, 
we usually choose the best options, so that the user can usually perform the 
action without changing the input selections. Therefore, it is more efficient 
for the user if we auto-focus on the submit button so that the user can hit 
enter to perform the action.

The default focusing strategy of the action dialogue widget is to auto-focus on 
input fields if there are any, or on the close button, which in our application 
is the submit button. The widget allows the strategy to be bypassed by using 
the HTML5 autofocus property. We should mark the submit button with the 
autofocus property.

Original issue reported on code.google.com by steven3...@gmail.com on 10 Aug 2014 at 8:36

GoogleCodeExporter commented 9 years ago

Original comment by steven3...@gmail.com on 10 Aug 2014 at 8:38

GoogleCodeExporter commented 9 years ago
Using autofocus property doesn't seem to work in Google Chrome, even though it 
is an HTML5 browser. Also, tried to autofocus using Javascript code, but can't 
seem to find the point of intervention in which the code would not be 
overridden by the jqueryui widget code.

Original comment by steven3...@gmail.com on 15 Sep 2014 at 7:49