From 203f8e3e21122b7567bd368746cc02fb72563f1f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sun, 16 Jun 2013 21:38:44 -0700 Subject: [PATCH] Fix enter key on feature list --- js/id/ui/feature_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/ui/feature_list.js b/js/id/ui/feature_list.js index 1428ac00b..57a83188f 100644 --- a/js/id/ui/feature_list.js +++ b/js/id/ui/feature_list.js @@ -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); } }