Fix undo while drawing

This commit is contained in:
Ansis Brammanis
2013-01-09 17:44:20 -05:00
parent f489117e5b
commit bc53ae457e

View File

@@ -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() {