mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Clear selection on input
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user