Clear selection on input

This commit is contained in:
mofux
2017-07-14 18:40:32 +03:00
committed by Paris Kasidiaris
parent 7cfc2ffa32
commit 1cc0d43aa4
+5
View File
@@ -2234,6 +2234,11 @@ Terminal.prototype.handler = function(data) {
return;
}
// Clear the selection
if (this.hasSelection()) {
this.clearSelection();
}
// Input is being sent to the terminal, the terminal should focus the prompt.
if (this.ybase !== this.ydisp) {
this.scrollToBottom();