Fixes navigation commands for webviews
Fixes #100536 These commands currently do not work because: - The use the `hasFocus` check in layout.ts - This looks at the active element and checks if the active element has a parent in the editor dom - However webviews are outside of the normal dom flow (since they cannot be reparented without being destroyred) To fix this, this PR adds allows dom node to point to their explicit parent using `setParentFlowTo`. Instead of a normal ancestor check, we then check ancestors while observing the flow to parents of node The webview element is then update to have a parent flow to that points at its editor node
Showing
想要评论请 注册 或 登录