mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-05-26 18:42:21 +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 {
|
private effacerLettre(): void {
|
||||||
if (this._estBloque) return;
|
if (this._estBloque) return;
|
||||||
if (this._motSaisi.length === 0) return;
|
if (this._motSaisi.length !== 0) {
|
||||||
this._motSaisi = this._motSaisi.substring(0, this._motSaisi.length - 1);
|
this._motSaisi = this._motSaisi.substring(0, this._motSaisi.length - 1);
|
||||||
|
}
|
||||||
this._gestionnaire.actualiserAffichage(this._motSaisi);
|
this._gestionnaire.actualiserAffichage(this._motSaisi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue