diff --git a/src/routes/game/+page.svelte b/src/routes/game/+page.svelte index 7cc3a8d..216cea2 100644 --- a/src/routes/game/+page.svelte +++ b/src/routes/game/+page.svelte @@ -43,6 +43,12 @@ latlng = e.latlng; } }); + + map.on("keydown", (e) => { + if (latlng.lat !== 0 && latlng.lng !== 0 && e.originalEvent.key === " ") { + checkLocation(); + } + }); } async function checkLocation() {