Bug "multi-pause" fixed

This commit is contained in:
Mathieu 2020-03-25 17:57:55 +01:00
parent c2a2770964
commit 580e31a796

View File

@ -326,6 +326,8 @@ async function startGame(gameID) {
// Listen for key press events
document.body.addEventListener("keydown", (ev) => {
if(!canvas.isConnected)
return;
if(["ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp"].includes(ev.key))
key = ev.key;