From f96d02480df9f8fd6116805b68ba1afbead459e9 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Sat, 15 Oct 2016 16:40:12 -0500 Subject: [PATCH] temporarily re-enable selection even when the terminal registers interest in order to fix copy/paste --- lib/hterm.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/hterm.js b/lib/hterm.js index 953e3311..59c575aa 100644 --- a/lib/hterm.js +++ b/lib/hterm.js @@ -207,26 +207,6 @@ hterm.Terminal.prototype.onMouse_ = function (e) { return oldOnMouse.call(this, e); }; -// since above we're no longer relying on `preventDefault` -// to avoid selections, we use css instead, so that -// focus is not lost, but selections are still not possible -// when the appropiate VT mode is set -hterm.VT.prototype.__defineSetter__('mouseReport', function (val) { - this.mouseReport_ = val; - const rowNodes = this.terminal.scrollPort_.rowNodes_; - if (rowNodes) { - if (val === this.MOUSE_REPORT_DISABLED) { - rowNodes.style.webkitUserSelect = 'text'; - } else { - rowNodes.style.webkitUserSelect = 'none'; - } - } -}); - -hterm.VT.prototype.__defineGetter__('mouseReport', function () { - return this.mouseReport_; -}); - // fixes a bug in hterm, where the shorthand hex // is not properly converted to rgb lib.colors.hexToRGB = function (arg) {