mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 06:28:15 +02:00
Focus type button when displaying inspector
One tab away from name Not a text input, so operation shortcuts still work
This commit is contained in:
@@ -57,19 +57,21 @@ iD.ui.TagEditor = function() {
|
||||
|
||||
typewrap.append('h4').text('Type');
|
||||
|
||||
var typelabel = typewrap.append('button')
|
||||
var typebutton = typewrap.append('button')
|
||||
.attr('class','col12')
|
||||
.on('click', function() {
|
||||
event.choose();
|
||||
});
|
||||
|
||||
typelabel.append('div')
|
||||
typebutton.append('div')
|
||||
.attr('class', 'icon icon-pre-text' + (presetMatch ? ' preset-' + presetMatch.icon : ''));
|
||||
|
||||
typebutton.node().focus();
|
||||
|
||||
var namewrap = headerwrap.append('div')
|
||||
.attr('class', 'name col9 inspector-inner');
|
||||
|
||||
typelabel.append('span')
|
||||
typebutton.append('span')
|
||||
.attr('class','label')
|
||||
.text(presetMatch.name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user