]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Add a comment
authorDaniel Imms <daimms@microsoft.com>
Tue, 20 Jun 2017 17:24:16 +0000 (10:24 -0700)
committerDaniel Imms <daimms@microsoft.com>
Tue, 20 Jun 2017 17:24:16 +0000 (10:24 -0700)
src/xterm.js

index 1bcb45d0b8020238f84076d9febbf6d015cb42f5..4236d4f8f1b98b934ab0e7363ea65719ce3b5aac 100644 (file)
@@ -721,6 +721,9 @@ Terminal.prototype.open = function(parent, focus) {
     this.renderer.refreshSelection(data.start, data.end);
   });
   this.selectionManager.on('newselection', text => {
+    // If there's a new selection, put it into the textarea, focus and select it
+    // in order to register it as a selection on the OS. This event is fired
+    // only on Linux to enable middle click to paste selection.
     this.textarea.value = text;
     this.textarea.focus();
     this.textarea.select();