mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-05-04 06:53:28 +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") {
|
||||
this.validerMot();
|
||||
} else if (/^[A-Z]+$/.test(Dictionnaire.nettoyerMot(touche))) {
|
||||
} else if (/^[A-Z]$/.test(Dictionnaire.nettoyerMot(touche))) {
|
||||
this.saisirLettre(touche);
|
||||
}
|
||||
}).bind(this)
|
||||
|
@ -143,6 +143,7 @@ export default class Input {
|
|||
let touche = event.key;
|
||||
|
||||
if (touche === "Backspace") {
|
||||
event.preventDefault();
|
||||
this.effacerLettre();
|
||||
}
|
||||
}).bind(this)
|
||||
|
|
Loading…
Reference in a new issue