properly broadcast ctrl-c - fixes #3961

This commit is contained in:
Eugene Pankov
2021-06-28 22:21:52 +02:00
parent 30a8a8d287
commit 6d0293975d

View File

@@ -177,9 +177,17 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
this.frontend.copySelection()
this.frontend.clearSelection()
this.notifications.notice('Copied')
} else {
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':
this.frontend?.copySelection()