Merge pull request #503 from AnthonyHarwood/bugfix/TextView_clearText

Added code to clear the text
This commit is contained in:
Bryan Ashby 2023-09-22 15:57:19 -06:00 committed by GitHub
commit fc107f1552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@ TextView.prototype.setText = function (text, redraw) {
};
TextView.prototype.clearText = function () {
if (this.text) {
this.setText(this.fillChar.repeat(this.text.length));
}
this.setText('');
};