concord space fix

This commit is contained in:
Killian Marty 2023-12-26 18:40:44 +01:00
parent 4fa0e3aad1
commit f12fccdddb

View file

@ -52,7 +52,7 @@ class Input {
window.addEventListener("keydown", (e)=>{
//blocks the action of the key (cf. Killian)
if(["Space","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.code)) {
if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.code)) {
e.preventDefault();
}
this.keysDown.add(e.key.toLowerCase())