File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/vs/workbench/contrib/notebook/browser/view/renderers Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ async function webviewPreloads(ctx: PreloadContext) {
94
94
let currentRenderOptions = ctx . renderOptions ;
95
95
const settingChange : EmitterLike < RenderOptions > = createEmitter < RenderOptions > ( ) ;
96
96
97
- let isInputElementFocused : boolean | undefined = undefined ;
98
-
99
97
const acquireVsCodeApi = globalThis . acquireVsCodeApi ;
100
98
const vscode = acquireVsCodeApi ( ) ;
101
99
delete ( globalThis as any ) . acquireVsCodeApi ;
@@ -147,9 +145,7 @@ async function webviewPreloads(ctx: PreloadContext) {
147
145
return ;
148
146
}
149
147
150
- isInputElementFocused = ! ! activeElement && ( activeElement . tagName === 'INPUT' || activeElement . tagName === 'TEXTAREA' ) ;
151
-
152
- if ( isInputElementFocused ) {
148
+ if ( activeElement . tagName === 'INPUT' || activeElement . tagName === 'TEXTAREA' ) {
153
149
postNotebookMessage < webviewMessages . IOutputInputFocusMessage > ( 'outputInputFocus' , { hasFocus : true } ) ;
154
150
155
151
activeElement . addEventListener ( 'onblur' , ( ) => {
You can’t perform that action at this time.
0 commit comments