diff --git a/src/draw/handler/Draw.Feature.js b/src/draw/handler/Draw.Feature.js index 1465fba34..d2b13d60e 100644 --- a/src/draw/handler/Draw.Feature.js +++ b/src/draw/handler/Draw.Feature.js @@ -71,6 +71,7 @@ L.Draw.Feature = L.Handler.extend({ // Cancel drawing when the escape key is pressed _cancelDrawing: function (e) { + this._map.fire('draw:canceled', { layerType: this.type }); if (e.keyCode === 27) { this.disable(); }