From b857625eebde6bee1a97c934cdbe2516e81ac29b Mon Sep 17 00:00:00 2001 From: ben-lu-uw Date: Thu, 25 Nov 2021 15:24:36 -0500 Subject: [PATCH] Ctrl arrow decreases pan offset --- src/mapml/keyboard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mapml/keyboard.js b/src/mapml/keyboard.js index e6f8c5daf..bc5028c58 100644 --- a/src/mapml/keyboard.js +++ b/src/mapml/keyboard.js @@ -1,7 +1,7 @@ L.Map.Keyboard.include({ _onKeyDown: function (e) { - if (e.altKey || e.ctrlKey || e.metaKey) { return; } + if (e.altKey || e.metaKey) { return; } let zoomIn = { 187: 187, @@ -27,6 +27,9 @@ L.Map.Keyboard.include({ if (e.shiftKey) { offset = L.point(offset).multiplyBy(3); } + if (e.ctrlKey) { + offset = L.point(offset).divideBy(3); + } map.panBy(offset);