From e95cc543964a777ebca623c27c0f5292d54f447f Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Thu, 7 Mar 2013 16:01:44 -0500 Subject: [PATCH] Fix geocoder tabindex --- js/id/ui/geocoder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/id/ui/geocoder.js b/js/id/ui/geocoder.js index f79758ff8..9cbbb0242 100644 --- a/js/id/ui/geocoder.js +++ b/js/id/ui/geocoder.js @@ -31,7 +31,7 @@ iD.ui.Geocoder = function(context) { return d.type.charAt(0).toUpperCase() + d.type.slice(1) + ': '; }) .append('a') - .attr('tabindex', function(d, i) { return i + 1; }) + .attr('tabindex', 1) .text(function(d) { if (d.display_name.length > 80) { return d.display_name.substr(0, 80) + '…'; @@ -97,6 +97,7 @@ iD.ui.Geocoder = function(context) { var inputNode = gcForm.attr('class', 'content fillD map-overlay hide') .append('input') .attr({ type: 'text', placeholder: t('geocoder.placeholder') }) + .attr('tabindex', 1) .on('keydown', keydown); var resultsList = selection.append('div')