diff --git a/js/id/modes/draw_line.js b/js/id/modes/draw_line.js index ffdab2480..9f4ee548c 100644 --- a/js/id/modes/draw_line.js +++ b/js/id/modes/draw_line.js @@ -125,6 +125,12 @@ iD.modes.DrawLine = function(wayId, direction) { .on('⌫.drawline', backspace) .on('⌦.drawline', del) .on('↩.drawline', ret); + + d3.select('#undo').on('click.drawline', function() { + history.undo(); + controller.enter(iD.modes.Browse()); + }); + }; mode.exit = function() {