From 96848a6425e7c1f440146f8ac23c566f03f151db Mon Sep 17 00:00:00 2001 From: paris Date: Thu, 10 Apr 2014 15:08:19 +0000 Subject: [PATCH] Improved textarea handling --- src/xterm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index 026d3077..bddef3c9 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -542,6 +542,10 @@ Terminal.prototype.open = function(parent) { this.element.appendChild(this.helperContainer); this.textarea = document.createElement('textarea'); this.textarea.classList.add('xterm-helper-textarea'); + this.textarea.setAttribute('autocorrect', 'off'); + this.textarea.setAttribute('autocapitalize', 'off'); + this.textarea.setAttribute('spellcheck', 'false'); + this.textarea.tabIndex = 0; this.helperContainer.appendChild(this.textarea); for (; i < this.rows; i++) {