Skip to content

Commit fe28a1a

Browse files
committed
cleanup
1 parent 50221d1 commit fe28a1a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ async function webviewPreloads(ctx: PreloadContext) {
9494
let currentRenderOptions = ctx.renderOptions;
9595
const settingChange: EmitterLike<RenderOptions> = createEmitter<RenderOptions>();
9696

97-
let isInputElementFocused: boolean | undefined = undefined;
98-
9997
const acquireVsCodeApi = globalThis.acquireVsCodeApi;
10098
const vscode = acquireVsCodeApi();
10199
delete (globalThis as any).acquireVsCodeApi;
@@ -147,9 +145,7 @@ async function webviewPreloads(ctx: PreloadContext) {
147145
return;
148146
}
149147

150-
isInputElementFocused = !!activeElement && (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA');
151-
152-
if (isInputElementFocused) {
148+
if (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA') {
153149
postNotebookMessage<webviewMessages.IOutputInputFocusMessage>('outputInputFocus', { hasFocus: true });
154150

155151
activeElement.addEventListener('onblur', () => {

0 commit comments

Comments
 (0)