Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice if the appropriate form_*() functions allowed for generation of the accesskey XHTML parameter for elements where it made sense, e.g. fieldset, input, textarea, etc.
One can kludge in an accesskey parameter in the attributes argument (probably), and by hand patch in a "span" to underline or otherwise highlight the access key, but it's all hacks to do it right now.
Comments
Comment #1
coreb CreditAttribution: coreb commentedMoving from x.y.z queue to 6.x-dev. I don't know the api well enough to know if this functionality exists or not.
Comment #2
Pasquallewhat is accesskey XHTML parameter?
Comment #3
Chris Johnson CreditAttribution: Chris Johnson commentedAccess keys, from Google:
http://www.alistapart.com/articles/accesskeys/
http://www.w3.org/TR/2002/WD-xhtml2-20020805/mod-attribute-collections.html
http://www.w3.org/TR/xhtml-access/
http://en.wikipedia.org/wiki/Access_keys
Comment #4
effulgentsia CreditAttribution: effulgentsia commentedI think this is a really good idea, but too late for D7. I think the D7 render system makes it possible for a contrib module to solve this (add a #accesskey property, and use #pre_render/#theme/#theme_wrappers or CSS3 to add some visible indicator for what the access key is). I'd love to see a worked out solution make it into D8 core.
Comment #5
mgiffordAccesskeys are an old idea that just can't work without standardization between Assistive Technology providers. See:
#23628: Automatic access keys
I've marked this as won't fix, for the same reason as the issue above.
Comment #6
mgifford