webview focus

This commit is contained in:
rebornix 2021-11-12 14:09:38 -08:00
parent e0563d8dd9
commit 0a4fa73a96
No known key found for this signature in database
GPG key ID: 0299D52A1BBA52AB

View file

@ -1296,11 +1296,7 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
this._localStore.add(this._webview.webview.onDidFocus(() => {
this._outputFocus.set(true);
this.updateEditorFocus();
this._onDidFocusEmitter.fire();
if (this._overlayContainer.contains(document.activeElement)) {
this._webviewFocused = true;
}
this._webviewFocused = true;
}));
this._localStore.add(this._webview.onMessage(e => {