mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-03 21:48:03 +02:00
Unbind ⌘-Z when exiting DrawLine (fixes #455)
This commit is contained in:
@@ -142,8 +142,6 @@ iD.modes.DrawLine = function(wayId, direction) {
|
||||
});
|
||||
|
||||
d3.select('#undo').on('click.drawline', undo);
|
||||
|
||||
|
||||
};
|
||||
|
||||
mode.exit = function() {
|
||||
@@ -161,10 +159,11 @@ iD.modes.DrawLine = function(wayId, direction) {
|
||||
.on('click.drawline', null);
|
||||
|
||||
mode.map.keybinding()
|
||||
.on('⎋.drawline', null)
|
||||
.on('⌫.drawline', null)
|
||||
.on('⌦.drawline', null)
|
||||
.on('↩.drawline', null);
|
||||
.on('⎋.drawline', null)
|
||||
.on('↩.drawline', null)
|
||||
.on('z.drawline', null);
|
||||
|
||||
d3.select('#undo').on('click.drawline', null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user