Avoid tabbing to field buttons in the entity editor

This commit is contained in:
Bryan Housel
2016-04-29 22:39:31 -04:00
parent ab3340e816
commit 5c68b2cc0f
5 changed files with 8 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ iD.ui.preset = function(context) {
wrap.append('button')
.attr('class', 'remove-icon')
.attr('tabindex', -1)
.call(iD.svg.Icon('#operation-delete'));
wrap.append('button')

View File

@@ -32,11 +32,13 @@ iD.ui.preset.url = function(field) {
enter.append('button')
.datum(1)
.attr('class', 'increment');
.attr('class', 'increment')
.attr('tabindex', -1);
enter.append('button')
.datum(-1)
.attr('class', 'decrement');
.attr('class', 'decrement')
.attr('tabindex', -1);
spinControl.selectAll('button')
.on('click', function(d) {

View File

@@ -32,6 +32,7 @@ iD.ui.preset.localized = function(field, context) {
translateButton.enter()
.append('button')
.attr('class', 'button-input-action localized-add minor')
.attr('tabindex', -1)
.call(iD.svg.Icon('#icon-plus'))
.call(bootstrap.tooltip()
.title(t('translate.translate'))

View File

@@ -61,6 +61,7 @@ iD.ui.preset.wikipedia = function(field, context) {
link.enter().append('a')
.attr('class', 'wiki-link button-input-action minor')
.attr('tabindex', -1)
.attr('target', '_blank')
.call(iD.svg.Icon('#icon-out-link', 'inline'));
}

View File

@@ -69,6 +69,7 @@ iD.ui.TagReference = function(tag, context) {
body
.append('a')
.attr('target', '_blank')
.attr('tabindex', -1)
.attr('href', 'https://wiki.openstreetmap.org/wiki/' + docs.title)
.call(iD.svg.Icon('#icon-out-link', 'inline'))
.append('span')