fix: disable spacebar after submission

This commit is contained in:
uku 2024-10-26 14:34:13 +02:00
parent 3ff96cc411
commit d607a4c4b3
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -49,7 +49,7 @@
map.on("click", (e) => setMarker(e.latlng)); map.on("click", (e) => setMarker(e.latlng));
map.on("keydown", (e) => { map.on("keydown", (e) => {
if (latlng.lat !== 0 && latlng.lng !== 0 && e.originalEvent.key === " ") { if (!results && latlng.lat !== 0 && latlng.lng !== 0 && e.originalEvent.key === " ") {
checkLocation(); checkLocation();
} }
}); });