diff --git a/contribs/gmf/src/drawing/drawFeatureComponent.js b/contribs/gmf/src/drawing/drawFeatureComponent.js index 6a7b5f4c323c..9f96bf90d6d1 100644 --- a/contribs/gmf/src/drawing/drawFeatureComponent.js +++ b/contribs/gmf/src/drawing/drawFeatureComponent.js @@ -606,7 +606,7 @@ exports.Controller_.prototype.handleMapClick_ = function(evt) { exports.Controller_.prototype.handleCancelKeyEvent_ = function() { - olEvents.listen(document.body, 'keydown', (e) => { + olEvents.listen(document.body, 'keydown', (event) => { const escPressed = event.keyCode === 27; // Escape key if (!active.mousedown && escPressed && this.selectedFeature) { this.selectedFeature = null; diff --git a/contribs/gmf/src/editing/editFeatureComponent.js b/contribs/gmf/src/editing/editFeatureComponent.js index dca1a8ac2371..582280f17f76 100644 --- a/contribs/gmf/src/editing/editFeatureComponent.js +++ b/contribs/gmf/src/editing/editFeatureComponent.js @@ -991,7 +991,7 @@ exports.Controller_.prototype.handleMapClick_ = function(evt) { const activeInteraction = interactions.find(interaction => interaction.getActive() === true); if (this.cancelEventKey_ === undefined) { - this.cancelEventKey_ = olEvents.listen(document.body, 'keydown', (e) => { + this.cancelEventKey_ = olEvents.listen(document.body, 'keydown', (event) => { const escPressed = event.keyCode === 27; // Escape key if (!active.mousedown && escPressed && activeInteraction.getActive()) { this.cancel();