From 7c25d1652fa95a2e441eb526a7ed26a553f08306 Mon Sep 17 00:00:00 2001 From: goldfndr Date: Fri, 19 Jul 2013 17:07:03 -0700 Subject: [PATCH] Single tab keypress focus on map for keyboard users 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. --- app/views/site/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 4b66fa149c..721fd18edc 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -16,7 +16,7 @@
-
+