mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 08:17:30 +02:00
Fix enter key on feature list
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user