From 86083e1491b6224d278a84d73af8aea86af28b49 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 28 May 2021 19:24:42 +0200 Subject: [PATCH] cancel broadcast on when clicking any pane --- terminus-terminal/src/api/baseTerminalTab.component.ts | 3 +++ terminus-terminal/src/hotkeys.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/terminus-terminal/src/api/baseTerminalTab.component.ts b/terminus-terminal/src/api/baseTerminalTab.component.ts index f9534e10..d288d472 100644 --- a/terminus-terminal/src/api/baseTerminalTab.component.ts +++ b/terminus-terminal/src/api/baseTerminalTab.component.ts @@ -533,6 +533,9 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit this.termContainerSubscriptions.subscribe(this.frontend.mouseEvent$, async event => { if (event.type === 'mousedown') { + if (event.which === 1) { + this.cancelFocusAllPanes() + } if (event.which === 2) { if (this.config.store.terminal.pasteOnMiddleClick) { this.paste() diff --git a/terminus-terminal/src/hotkeys.ts b/terminus-terminal/src/hotkeys.ts index 9b0070d2..9cba8f6f 100644 --- a/terminus-terminal/src/hotkeys.ts +++ b/terminus-terminal/src/hotkeys.ts @@ -67,7 +67,7 @@ export class TerminalHotkeyProvider extends HotkeyProvider { }, { id: 'pane-focus-all', - name: 'Focus all panes at once', + name: 'Focus all panes at once (broadcast)', }, ]