Skip to content

Commit f623074

Browse files
committed
fix: fixes copy on shift-click
1 parent ea759c0 commit f623074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ export abstract class BaseMap extends Events implements BaseMapDefinition {
822822
this.popup.setTarget(evt.latlng).open(`[${latlng.lat}, ${latlng.lng}]`);
823823
if (
824824
this.data.copyOnClick &&
825-
(evt.originalEvent.getModifierState(MODIFIER_KEY) || Platform.isMobile)
825+
(evt.originalEvent.getModifierState("Shift") || Platform.isMobile)
826826
) {
827827
this.log(`Copying coordinates of click to clipboard.`);
828828
await copyToClipboard(evt.latlng);

0 commit comments

Comments
 (0)