You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
webview: sometimes focus is not passed to editor when clicked into #64729
The issue here seems to be that this extension is using an iframe inside of the webview.However they are also using the old vscode.previewHtml command instead the new webview API: negokaz/vscode-live-server-preview#14
Not sure if using previewHtml makes any difference but I'll test an iframe using the webview api
The only way I could find to reliably track focus for webview contents that include iframes is polling. If you have any other ideas here, please let me know as I'm not a fan of this solution
Matt Bierner (@mjbvz) maybe leave in a todo for you to check back on that workaround, it is possible that the webview might get fixes in the future. At least we should check when we update to Electron 4.
I also could not find any good solution and it seems others are having issues too.
Activity
bpasero commentedon Dec 12, 2018
Maybe related: electron/electron#13697
Also: https://github.com/wireapp/wire-desktop/pull/1915/files#diff-230d8ff5ba91cf235b1f137942860593R23
mjbvz commentedon Dec 18, 2018
I could not get
focus-changeto work reliably.The issue here seems to be that this extension is using an iframe inside of the webview.However they are also using the old
vscode.previewHtmlcommand instead the new webview API: negokaz/vscode-live-server-preview#14Not sure if using
previewHtmlmakes any difference but I'll test an iframe using the webview apimjbvz commentedon Dec 18, 2018
The only way I could find to reliably track focus for webview contents that include iframes is polling. If you have any other ideas here, please let me know as I'm not a fan of this solution
bpasero commentedon Dec 19, 2018
Matt Bierner (@mjbvz) maybe leave in a todo for you to check back on that workaround, it is possible that the webview might get fixes in the future. At least we should check when we update to Electron 4.
I also could not find any good solution and it seems others are having issues too.