From 1548742c4060717168b650ae43f4121f8c4330ee Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 26 Feb 2013 11:52:56 -0500 Subject: [PATCH] Focus type button when displaying inspector One tab away from name Not a text input, so operation shortcuts still work --- js/id/ui/tageditor.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/id/ui/tageditor.js b/js/id/ui/tageditor.js index 227d5d353..0c3216597 100644 --- a/js/id/ui/tageditor.js +++ b/js/id/ui/tageditor.js @@ -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);