2
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-04-12 16:10:26 +08:00

properly broadcast ctrl-c - fixes

This commit is contained in:
Eugene Pankov 2021-06-28 22:21:52 +02:00
parent 30a8a8d287
commit 6d0293975d
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

@ -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':