-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] BlazorWebView with WindowsForms: keyboard and focus issues #2341
Comments
On RC2 I'm seeing some similar, but slightly different behavior. I am working on updating to WebView2 1.0.961.33 as well, so that probably introduces some differences. In WinForms I now see:
|
Plus, as it seems you've certainly noticed, these issues at least mostly (if not entirely?) seem to be due to WebView2, per the issues and comments you've logged:
We have regular communication with the WebView2 folks so I'm hopeful we can get these issues resolve because I agree it does make the WebView2 hybrid app experience unusable for keyboard scenarios (and boy oh boy am I myself a hardcore keyboard user, let alone many who can only use keyboard or other similar input/accessibility devices). |
Thanks for an update, looking fwd to those Also, well done on |
Verified reproes. Repro project: |
@Eilon if there are any remaining issues to be filed from the list you've provided let's file this. Otherwise, if everything is already being tracked we should probably close this issue. Don't you think so? |
Here's what works:
And what doesn't work:
The situation now is that I'm not sure if any of these are BlazorWebView bugs, but rather all or almost all are WebView2 bugs. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Moving to .NET 8 planning. We will need to work with the WebView2 team to shepherd these changes. |
Hi @noseratio. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Verified on Visual Studio Enterprise 17.6.0 Preview 2.0. This issue does not repro with sample project.
|
Description
Below are some usability issues I've discovered while paying with
BlazorWebView
using WinForms and .NET v6.0.100-preview.7 SDK. A BlazorWebView/WinForms repo to reproduce. I haven't tried it with WPF or WinUI yet, but I'd expect the same behavior:BlazorWebView
.textarea
withinBlazorWebView
TextBox
with Tab the focus (and the cursor) disappears . Then It takes an extra Tab to move the focus intoBlazorWebView
.BlazorWebView
(by clicking inside it). So I can type inside HTMLtextarea
while the menu is still shown:I realize that some of these (like lingering menus) might be specific to
WebView2
+ WinForms. However, in a similar non-BlazorWebView2
app (just static HTML withWebView2
runtime v92.0.902.84 and SDK1.0.955-prerelease
) at least the arrow keys, Alt-F4 and tabbing work as expected.Perhaps,
BlazorWebView
just needs to update theWebView2
SDK dependencies? I've tried that but I'm getting this error:Steps to Reproduce
https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-6.0.100-preview.7-windows-x64-installer
git clone https://github.com/noseratio/BlazorWebViewWinFormsApp .
dotnet run
Expected Behavior
Functional keyboard accelerators and focus handling.
Actual Behavior
See the above.
Basic Information
Reproduction Link
https://github.com/noseratio/BlazorWebViewWinFormsApp
The text was updated successfully, but these errors were encountered: