remove selection after copying using smart Ctrl-C

This commit is contained in:
Eugene Pankov
2018-04-24 16:01:05 +02:00
parent cdfd84a7f8
commit 8432e3ef66

View File

@@ -93,6 +93,7 @@ export class TerminalTabComponent extends BaseTabComponent {
case 'ctrl-c': case 'ctrl-c':
if (this.hterm.getSelectionText()) { if (this.hterm.getSelectionText()) {
this.hterm.copySelectionToClipboard() this.hterm.copySelectionToClipboard()
this.hterm.getDocument().getSelection().removeAllRanges()
} else { } else {
this.sendInput('\x03') this.sendInput('\x03')
} }