mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-06-10 09:52:13 +02:00
Close #6 : En cas de mot invalide, la touche effacer raffrachi la grille
This commit is contained in:
parent
902d182fbf
commit
b63949d4a7
|
@ -67,8 +67,9 @@ export default class Input {
|
|||
|
||||
private effacerLettre(): void {
|
||||
if (this._estBloque) return;
|
||||
if (this._motSaisi.length === 0) return;
|
||||
this._motSaisi = this._motSaisi.substring(0, this._motSaisi.length - 1);
|
||||
if (this._motSaisi.length !== 0) {
|
||||
this._motSaisi = this._motSaisi.substring(0, this._motSaisi.length - 1);
|
||||
}
|
||||
this._gestionnaire.actualiserAffichage(this._motSaisi);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue