-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: BrowserView elements do not retain input focus between BrowserWindow blur/focus #28163
Comments
+1 this is a major annoyance when using Mattermost on Linux with sloppy focus |
Having the same issue. This is extremely problematic for any apps which are text-input heavy, or which require keyboard interaction immediately after focusing the window. I cannot seem to find a workaround for this, as BrowserView's webContents.focus is not properly implemented and does nothing (on Mac OS here) |
repros in Electron 21 |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Still an issue... |
Still an issue, here too. Debian 11, Cinnamon, x11. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
bump |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
+1 |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
bump |
same issue here |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
+1 |
Preflight Checklist
Electron Version
12.0.1
What operating system are you using?
Windows
Operating System Version
10
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When I'm focused in a BrowserView, I expect that alt+tabbing away, and alt+tabbing back, will keep focus in the BrowserView
Actual Behavior
Focus is lost, and I have to click back into the BrowserView
Testcase Gist URL
No response
Additional Information
No response
This is a continuation of this closed issue concerning webview, though it seems like this works fine for webview. Only BrowserView have this problem.
main.js:
index.html:
I'm having to work around it by intercepting the
focus
event of theBrowserWindow
and explicitly focus theBrowserView
'sWebContents
.The text was updated successfully, but these errors were encountered: