Merge pull request #1 from nuttingd/nuttingd-patch-1-1

Add autocorrect prevention
This commit is contained in:
David Nutting 2024-12-10 20:12:26 -08:00 committed by GitHub
commit 656594c0ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,12 @@ export class OurXterm {
this.term.scrollToBottom();
this.showMessage(String(this.term.cols) + "x" + String(this.term.rows), this.messageTimeout);
};
const input = this.term.textarea()
input.setAttribute('autocorrect', 'off');
input.setAttribute('autocapitalize', 'off');
input.setAttribute('autocomplete', 'off');
input.setAttribute('spellcheck', 'false');
this.term.open(elem);
this.term.focus();