mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-07 15:26:49 +01:00
set focus on iframe window and on webview, fixes #5070
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
// propagate focus
|
||||
ipcRenderer.on('focus', function() {
|
||||
target.contentDocument.body.focus();
|
||||
target.contentWindow.focus();
|
||||
});
|
||||
|
||||
// update iframe-contents
|
||||
|
||||
@@ -110,6 +110,7 @@ export default class Webview {
|
||||
}
|
||||
|
||||
focus(): void {
|
||||
this._webview.focus();
|
||||
this._send('focus');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user