mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 09:42:56 +00:00
Fix undo while drawing
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user