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

This commit is contained in:
Johannes Rieken
2016-05-12 12:48:10 +02:00
parent e2da5725c1
commit aaa65451f6
2 changed files with 2 additions and 1 deletions
@@ -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');
}