mirror of
https://github.com/sorenisanerd/gotty.git
synced 2025-04-02 17:10:29 +00:00
Merge pull request #1 from nuttingd/nuttingd-patch-1-1
Add autocorrect prevention
This commit is contained in:
commit
656594c0ea
@ -46,6 +46,12 @@ export class OurXterm {
|
|||||||
this.term.scrollToBottom();
|
this.term.scrollToBottom();
|
||||||
this.showMessage(String(this.term.cols) + "x" + String(this.term.rows), this.messageTimeout);
|
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.open(elem);
|
||||||
this.term.focus();
|
this.term.focus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user