Skip to content

Commit

Permalink
fix: to microsoft#182266, Corrected Webview hasFocus check
Browse files Browse the repository at this point in the history
  • Loading branch information
yiliang114 committed Nov 28, 2023
1 parent c30cebe commit 80d7735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
return false;
}

const activeElement = document.activeElement;
const activeElement = container.ownerDocument.activeElement;
if (!activeElement) {
return false;
}
Expand Down

0 comments on commit 80d7735

Please sign in to comment.