mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
temporarily re-enable selection even when the terminal registers interest in order to fix copy/paste
This commit is contained in:
parent
428eba7258
commit
f96d02480d
1 changed files with 0 additions and 20 deletions
20
lib/hterm.js
20
lib/hterm.js
|
|
@ -207,26 +207,6 @@ hterm.Terminal.prototype.onMouse_ = function (e) {
|
||||||
return oldOnMouse.call(this, 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
|
// fixes a bug in hterm, where the shorthand hex
|
||||||
// is not properly converted to rgb
|
// is not properly converted to rgb
|
||||||
lib.colors.hexToRGB = function (arg) {
|
lib.colors.hexToRGB = function (arg) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue