MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Keyboard and focus issues with WebView2 and WinForms on .NET preview 7

Open
#1,703 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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:

  • Alt+Space for system menu doesn't work when the focus is inside WebView2. OTOH, Alt+F4 does work as expected, I believe it didn't in early releases 👍.
  • App-specific WinForms accelerators (e.g., Alt+X) still don't work when the focus is inside WebView2. They do when the focus is inside a native control like TextBox.
    Related WPF issue: https://github.com/MicrosoftEdge/WebView2Feedback/issues/468.
  • Pressing and releasing Alt inside WebView2 activates WinForms menu, but the focus remains inside WebView2:

Version
WebView2 SDK v1.0.955-prerelease
WebView2 runtime v92.0.902.84
.NET v6.0.100-preview.7
Windows 10 v19043.1165

Repro Steps

AB#34280866

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Clone the linked WebView2WinFormsSysHotKeys repository and run it with dotnet run using the versions listed in the issue. Reproduce Alt+Space, Alt+X, and Alt focus behavior inside WebView2, then inspect the sample entry point and related WinForms/WebView2 event handling. Done means the listed shortcuts and focus transitions behave as expected.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.