X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Fxterm.js;h=a3f425d1aa797ced5bff82f4d4184f091b7c3c26;hb=3f7fec8c918663089561e2b7bb9d3c7ab78cbf9c;hp=f26e4e157b94e0ce0ab0b95e27348d778b0d0387;hpb=34f075a8cc3c51dd1658880faa0e80f975366abd;p=mirror_xterm.js.git diff --git a/src/xterm.js b/src/xterm.js index f26e4e1..a3f425d 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -517,7 +517,7 @@ Terminal.prototype.initGlobal = function() { on(this.element, 'copy', event => { // If mouse events are active it means the selection manager is disabled and // copy should be handled by the host program. - if (this.mouseEvents) { + if (!term.hasSelection()) { return; } copyHandler(event, term, this.selectionManager);