From adb2adc105cf67f76407b3668347d75cac545fda Mon Sep 17 00:00:00 2001 From: Laurent Lienher Date: Thu, 14 Nov 2019 17:02:08 +0100 Subject: [PATCH] Fix typo event --- contribs/gmf/src/drawing/drawFeatureComponent.js | 2 +- contribs/gmf/src/editing/editFeatureComponent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();