asdfsadf
This commit is contained in:
parent
a2a5a3a96b
commit
a4152b4529
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ function readTextFile(file) { //Merci StackOverflow
|
|||
function verifWord() {
|
||||
let exist = false;
|
||||
if (word.length == 5){
|
||||
if(word in arrWords){
|
||||
if(arrWords.includes(word)){
|
||||
exist = true;
|
||||
}
|
||||
else {
|
||||
|
@ -158,7 +158,7 @@ function setMyKeyDownListener() {
|
|||
else if (event.key == "Backspace") {
|
||||
Supprimer();
|
||||
}
|
||||
else if (event.key in ["q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m"]){
|
||||
else if (["q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","n","m"].includes(event.key)){
|
||||
update(event.key.toUpperCase());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue