mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Avoid tabbing to field buttons in the entity editor
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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'))
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user