From 8ac38cb0cc093c40145099ac9ac44ad40f401cea Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Thu, 11 Jun 2020 17:37:51 -0500 Subject: [PATCH] Force focus out of webview when cell list focus changes Have to fix again after changing how cell list focus works --- .../contrib/notebook/browser/view/notebookCellList.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts index 52a85ed40c2..0820f6f2e56 100644 --- a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts +++ b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts @@ -66,6 +66,10 @@ export class NotebookCellList extends WorkbenchList implements ID } }); this._previousFocusedElements = e.elements; + + if (document.activeElement && document.activeElement.classList.contains('webview')) { + super.domFocus(); + } })); const notebookEditorCursorAtBoundaryContext = NOTEBOOK_EDITOR_CURSOR_BOUNDARY.bindTo(contextKeyService); -- GitLab