From cc5a3a56c8ac5282a1e60f7c7ed16bef9ed009ae Mon Sep 17 00:00:00 2001 From: ben-lu-uw Date: Wed, 29 Sep 2021 14:42:16 -0400 Subject: [PATCH] Fix issue https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/469 --- src/mapml/handlers/ContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapml/handlers/ContextMenu.js b/src/mapml/handlers/ContextMenu.js index c6cd88603..2b88a2d46 100644 --- a/src/mapml/handlers/ContextMenu.js +++ b/src/mapml/handlers/ContextMenu.js @@ -433,7 +433,7 @@ export var ContextMenu = L.Handler.extend({ this._layerClicked = undefined; this._showAtPoint(e.containerPoint, e, this._container); } - if(e.originalEvent.button === 0){ + if(e.originalEvent.button === 0 || e.originalEvent.button === -1){ this._keyboardEvent = true; this._container.firstChild.focus(); }