feat: add spacebar slamming
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 39s

This commit is contained in:
uku 2024-10-26 00:05:21 +02:00
parent ef8db66bfb
commit dc55bf3a7a
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -43,6 +43,12 @@
latlng = e.latlng; latlng = e.latlng;
} }
}); });
map.on("keydown", (e) => {
if (latlng.lat !== 0 && latlng.lng !== 0 && e.originalEvent.key === " ") {
checkLocation();
}
});
} }
async function checkLocation() { async function checkLocation() {