[openstreetmap-website] Single tab keypress focus on map for keyboard users (#358)

goldfndr notifications at github.com
Sat Jul 20 00:07:26 UTC 2013


When one goes to the default map page, the first tabindex is set to the search field, which is good. But, to use the keyboard with the map (arrows for scrolling, =/- for zooming), one must press the tab key many times (26?). This modification quickly gets the keyboard to a much-used location via a single keypress.

Perhaps another element should get a `tabindex="3"` attribute to minimize disruption; I've done only minimal focus-testing.
You can merge this Pull Request by running:

  git pull https://github.com/goldfndr/openstreetmap-website patch-1

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/358

-- Commit Summary --

  * Single tab keypress focus on map for keyboard users

-- File Changes --

    M app/views/site/index.html.erb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/358.patch
https://github.com/openstreetmap/openstreetmap-website/pull/358.diff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130719/9af34594/attachment.html>


More information about the rails-dev mailing list