From 2504e2e5f541f8be83ed399affbc5afba57c9181 Mon Sep 17 00:00:00 2001 From: Stefan Forsgren Date: Tue, 1 Nov 2022 07:50:32 +0100 Subject: [PATCH] Fixed comments --- src/controls/position.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controls/position.js b/src/controls/position.js index bdb436102..f09a99cf7 100644 --- a/src/controls/position.js +++ b/src/controls/position.js @@ -138,7 +138,7 @@ const Position = function Position(options = {}) { } /** - * Update coords in input, transformin if necessary. + * Update coords in input, transforming if necessary. * @param {any} sourceCoords */ function updateCoords(sourceCoords) { @@ -254,7 +254,7 @@ const Position = function Position(options = {}) { } else if (e.which === 13) { findCoordinate(); } - // For DMS, we handle everything ourselves. Ignore all keypresses (including current key) i order to keep browser not interfering + // For DMS, we handle everything ourselves. Ignore all keypresses (including current key) in order to keep browser from interfering e.preventDefault(); } else if (e.which === 13) { findCoordinate();