|
@@ -366,6 +366,11 @@ const registerWebViewElement = function () {
|
|
|
return internal.webContents
|
|
|
}
|
|
|
|
|
|
+ // Focusing the webview should move page focus to the underlying iframe.
|
|
|
+ proto.focus = function () {
|
|
|
+ this.contentWindow.focus()
|
|
|
+ }
|
|
|
+
|
|
|
window.WebView = webFrame.registerEmbedderCustomElement('webview', {
|
|
|
prototype: proto
|
|
|
})
|