提交 aaa65451 编写于 作者: J Johannes Rieken

set focus on iframe window and on webview, fixes #5070

上级 e2da5725
......@@ -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');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册