提交 8ac38cb0 编写于 作者: R Rob Lourens

Force focus out of webview when cell list focus changes

Have to fix again after changing how cell list focus works
上级 ad30a371
...@@ -66,6 +66,10 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID ...@@ -66,6 +66,10 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
} }
}); });
this._previousFocusedElements = e.elements; this._previousFocusedElements = e.elements;
if (document.activeElement && document.activeElement.classList.contains('webview')) {
super.domFocus();
}
})); }));
const notebookEditorCursorAtBoundaryContext = NOTEBOOK_EDITOR_CURSOR_BOUNDARY.bindTo(contextKeyService); const notebookEditorCursorAtBoundaryContext = NOTEBOOK_EDITOR_CURSOR_BOUNDARY.bindTo(contextKeyService);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册