bug correction
This commit is contained in:
rodzic
f064dab687
commit
191faf34d4
1 zmienionych plików z 1 dodań i 0 usunięć
|
@ -220,6 +220,7 @@ function aleatoire() {
|
||||||
function setMyKeyDownListener() {
|
function setMyKeyDownListener() {
|
||||||
window.addEventListener("keydown",
|
window.addEventListener("keydown",
|
||||||
function(event){
|
function(event){
|
||||||
|
event.preventDefault();
|
||||||
console.log(event.key)
|
console.log(event.key)
|
||||||
if (event.key == "Enter"){
|
if (event.key == "Enter"){
|
||||||
Enter();
|
Enter();
|
||||||
|
|
Ładowanie…
Reference in a new issue