mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-06-15 20:25:20 +02:00
Fix #50 : Problème avec la touche retour arrière
This commit is contained in:
parent
efa020f758
commit
3fa2c6ae6a
|
@ -129,7 +129,7 @@ export default class Input {
|
||||||
|
|
||||||
if (touche === "Enter") {
|
if (touche === "Enter") {
|
||||||
this.validerMot();
|
this.validerMot();
|
||||||
} else if (/^[A-Z]+$/.test(Dictionnaire.nettoyerMot(touche))) {
|
} else if (/^[A-Z]$/.test(Dictionnaire.nettoyerMot(touche))) {
|
||||||
this.saisirLettre(touche);
|
this.saisirLettre(touche);
|
||||||
}
|
}
|
||||||
}).bind(this)
|
}).bind(this)
|
||||||
|
@ -143,6 +143,7 @@ export default class Input {
|
||||||
let touche = event.key;
|
let touche = event.key;
|
||||||
|
|
||||||
if (touche === "Backspace") {
|
if (touche === "Backspace") {
|
||||||
|
event.preventDefault();
|
||||||
this.effacerLettre();
|
this.effacerLettre();
|
||||||
}
|
}
|
||||||
}).bind(this)
|
}).bind(this)
|
||||||
|
|
Loading…
Reference in a new issue