routing shortcut

This commit is contained in:
vcoppe
2024-07-16 15:48:01 +02:00
parent 88d2d3d81c
commit d0d35468ea
3 changed files with 11 additions and 3 deletions

View File

@@ -88,7 +88,8 @@
previousOverlays,
distanceMarkers,
directionMarkers,
streetViewSource
streetViewSource,
routing
} = settings;
let undoDisabled = derived(canUndo, ($canUndo) => !$canUndo);
@@ -544,6 +545,9 @@
} else if (e.key === 'F4') {
$directionMarkers = !$directionMarkers;
e.preventDefault();
} else if (e.key === 'F5') {
$routing = !$routing;
e.preventDefault();
} else if (
e.key === 'ArrowRight' ||
e.key === 'ArrowDown' ||