From d943cb1fda04226d415d56bbc17ad145033a10d4 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Wed, 20 Dec 2023 12:27:00 -0500 Subject: [PATCH] don't move focus to terminal blocks under iframes --- src/Shell.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Shell.ts b/src/Shell.ts index 9d3785cd..4e297268 100644 --- a/src/Shell.ts +++ b/src/Shell.ts @@ -369,7 +369,8 @@ export class Shell { terminalBlock.fullscreenEvent.on(onFullScreen); terminalBlock.clearEvent.on(onClear); this.addItem(terminalBlock); - this._activeItem.dispatch(terminalBlock); + if (!activeIframeBlock) + this._activeItem.dispatch(terminalBlock); }; terminalTaskQueue.queue(() => addTerminalBlock()); },