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:
Ansis Brammanis
2013-02-26 11:52:56 -05:00
parent 051e05dcf7
commit 1548742c40
+5 -3
View File
@@ -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);