Fix enter key on feature list

This commit is contained in:
John Firebaugh
2013-06-16 21:38:44 -07:00
parent 0d4e8fa32e
commit 203f8e3e21
+1 -1
View File
@@ -9,7 +9,7 @@ iD.ui.FeatureList = function(context) {
function keypress() {
var q = search.property('value');
if (d3.event.keyCode === 13 && q.length) {
click(list.selectAll('.feature-list-item:first-child').datum());
click(list.selectAll('.feature-list-item:first-child').datum().entity);
}
}