-
Notifications
You must be signed in to change notification settings - Fork 55
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
Keyboard and focus issues with WebView2 and WinForms on .NET preview 7 #1703
Comments
TBH, at this stage I feel like the best path for hosting That would give me direct access to important VW2 integration APIs like |
Hey @noseratio - thanks for the bug reports! I believe these are mostly tracked in other issues, but I've added this to our scenario we have for tracking keyboarding issues and improving the experience here. We know this is currently a bad pain-point for devs using our .NET controls and have this as a high-priority scenario on our backlog. Thanks! |
Hi @champnic, thanks for putting it on track. FWIW, the current keyboard/focus behavior is a lot better than that of I keep saying it... I believe would be beneficial for both Microsoft and the WebView2 dev community if (at least) the .NET wrappers for Some folks, me included, have been dealing with browser control integration issues since the early days of IE ActiveX-based |
Hi, @noseratio! We have released a new feature in the recent release(109). Focus and Inputs will be on native apps in this mode. You can enable this mode by enabling the feature flag ("--enable-features=msWebView2BrowserHitTransparent") in |
@zhuhaichao518 thank you - well done, good to see some progress! I'll give this new feature a try and will report what I'll find. |
What is the current state of this? It appears that there is still no official documentation about this feature. It isn't even listed in here. |
We now have a ControllerOptions API for enabling this, instead of the feature flag: |
Description
I've tried the latest
WebView2
(SDK v1.0.955-prerelease, runtime v92.0.902.84) with Windows Forms on .NET v6.0.100-preview.7. I'm seeing a lot of improvements, but I still could spot the following issues:WebView2
. OTOH, Alt+F4 does work as expected, I believe it didn't in early releases 👍.WebView2
. They do when the focus is inside a native control likeTextBox
.Related WPF issue: WPF Key Forwarding from WebView2 to Host application? #468.
WebView2
activates WinForms menu, but the focus remains insideWebView2
:Version
WebView2
SDK v1.0.955-prereleaseWebView2
runtime v92.0.902.84.NET v6.0.100-preview.7
Windows 10 v19043.1165
Repro Steps
https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-6.0.100-preview.7-windows-x64-installer
https://github.com/noseratio/WebView2WinFormsSysHotKeys .
dotnet run
AB#34280866
The text was updated successfully, but these errors were encountered: