From 6d0293975d2b05e906a6f64d42b077e54f48312b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Mon, 28 Jun 2021 22:21:52 +0200 Subject: [PATCH] properly broadcast ctrl-c - fixes #3961 --- terminus-terminal/src/api/baseTerminalTab.component.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/terminus-terminal/src/api/baseTerminalTab.component.ts b/terminus-terminal/src/api/baseTerminalTab.component.ts index 9ccea50f..a8e77e9f 100644 --- a/terminus-terminal/src/api/baseTerminalTab.component.ts +++ b/terminus-terminal/src/api/baseTerminalTab.component.ts @@ -178,7 +178,15 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit this.frontend.clearSelection() this.notifications.notice('Copied') } else { - this.sendInput('\x03') + if (this.parent && this.parent instanceof SplitTabComponent && this.parent._allFocusMode) { + for (const tab of this.parent.getAllTabs()) { + if (tab instanceof BaseTerminalTabComponent) { + tab.sendInput('\x03') + } + } + } else { + this.sendInput('\x03') + } } break case 'copy':