Home ›
For usability, Drupal should focus on the first relevant form fieldFor usability, Drupal should focus on the first relevant form field
Submitted by Benjamin Melançon on October 8, 2008 - 7:18pm
For a basic, but nice, usability improvement Drupal, for all pages where a form is the center of attention, the first form field that people should type in should have the keyboard focus given to it.
Here's a method for doing it with JQuery: http://www.gerd-riesselmann.net/development/focus-first-form-field-with-jquery
This would have to skip the search field, which is often at the top, unless the search field were the only form field on a page, in which case it might make a lot of sense to target the search field. It should also not focus on send-to-friend and other miscellaneous fields in sidebars or other non-main forms.
Of course, there's a module for thatTM
http://drupal.org/project/focus
Resolution
Searched words:
jquery focus on first drupal form on the page
usability enhancement
automatically highlight form field element in keyboard navigation
Comments
what if I dont want to skip search field
the drupal module doesnt seem to work correctly with the search textfield provided when you are using it in view filtering.
Post new comment