-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
WinForms - text input Autofocus not works #4965
Comments
We have actually just recently stumbled upon this as well, the input focus used to work fine for us using the Windows Forms control when manually focusing the
This however appears to have stopped working as it appears. |
I was just able to resolve the issue using a custom focus handler: SafeExamBrowser/seb-win-refactoring@e8ebb21. It may however be that the default handler still has a bug, as the input focus indeed was not working anymore as explained above. |
Can we have that in a newer seb version? |
Yes, the fix will be released with the upcoming version 3.9.0. |
@I-Iege Please provide more detail steps. Making sure to clarify which example you are using, there are multiple. e.g.
Probably issue chromiumembedded/cef#3436 (comment) Switching to the
It hasn't changed in years, it's possible that it needs changes if Pull request would be welcome. |
I primarily tested this with our internal webpage, but opening google has similar issue.
|
Thanks for the additional information and context; I did suspect that it was an upstream issue. Luckily, the implementation of a custom focus handler has resolved the issue for us. |
Is there an existing issue for this?
CefSharp Version
129.0.110
Operating System
Windows 11
Architecture
x64
.Net Version
.Net 6.0
Implementation
WinForms
Reproduction Steps
Expected behavior
The text input is in fully focused, it is possible to type text after the page loaded.
Actual behavior
The text input has focused style, but has no caret not possible to type.
Regression?
No response
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Yes using WPF/OffScreen command line args
Other information
the text input is HTMLInputElement
the page build with node 22.9.0
we have :
"@types/react-dom": "^17.0.11",
"react-dom": "^17.0.2",
The text was updated successfully, but these errors were encountered: