Unbind ⌘-Z when exiting DrawLine (fixes #455)

This commit is contained in:
John Firebaugh
2013-01-22 09:49:38 -05:00
parent c05f3ea7f4
commit 2e14a6b4de
+3 -4
View File
@@ -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);