From 8432e3ef66c73a81c111863fb62a971fa58d9065 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 24 Apr 2018 16:01:05 +0200 Subject: [PATCH] remove selection after copying using smart Ctrl-C --- terminus-terminal/src/components/terminalTab.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/terminus-terminal/src/components/terminalTab.component.ts b/terminus-terminal/src/components/terminalTab.component.ts index 647d1cd8..7c8d9a69 100644 --- a/terminus-terminal/src/components/terminalTab.component.ts +++ b/terminus-terminal/src/components/terminalTab.component.ts @@ -93,6 +93,7 @@ export class TerminalTabComponent extends BaseTabComponent { case 'ctrl-c': if (this.hterm.getSelectionText()) { this.hterm.copySelectionToClipboard() + this.hterm.getDocument().getSelection().removeAllRanges() } else { this.sendInput('\x03') }