Browse Source

bug correction

Leonardo Blavignac 1 year ago
parent
commit
191faf34d4
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      script.js

+ 1
- 0
script.js View File

@@ -220,6 +220,7 @@ function aleatoire() {
220 220
 function setMyKeyDownListener() {
221 221
     window.addEventListener("keydown",
222 222
     function(event){
223
+        event.preventDefault();
223 224
         console.log(event.key)
224 225
         if (event.key == "Enter"){
225 226
             Enter(); 

Loading…
Cancel
Save