From 2e14a6b4deacaf8f649c0be3b1880354371125aa Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 22 Jan 2013 09:49:38 -0500 Subject: [PATCH] =?UTF-8?q?Unbind=20=E2=8C=98-Z=20when=20exiting=20DrawLin?= =?UTF-8?q?e=20(fixes=20#455)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/id/modes/draw_line.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/id/modes/draw_line.js b/js/id/modes/draw_line.js index 72a85ae41..4be2e5527 100644 --- a/js/id/modes/draw_line.js +++ b/js/id/modes/draw_line.js @@ -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);