]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/xterm.js
Merge branch 'master' into alt-selection
[mirror_xterm.js.git] / src / xterm.js
index f26e4e157b94e0ce0ab0b95e27348d778b0d0387..a3f425d1aa797ced5bff82f4d4184f091b7c3c26 100644 (file)
@@ -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);