feat: add spacebar slamming
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 39s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 39s
This commit is contained in:
parent
ef8db66bfb
commit
dc55bf3a7a
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue