]> git.proxmox.com Git - mirror_xterm.js.git/blobdiff - src/xterm.js
wip: alt forces selection
[mirror_xterm.js.git] / src / xterm.js
index b1f20694e1ec37a89422403f799906815fed1e12..8685cbad0e1273d797072552eab010af21e1294d 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 (!this.selectionManager.hasSelection) {
       return;
     }
     copyHandler(event, term, this.selectionManager);