MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Keyboard and focus issues with WebView2 and WinForms on .NET preview 7
Nobody has claimed this yet.
- 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 likeTextBox.
Related WPF issue: https://github.com/MicrosoftEdge/WebView2Feedback/issues/468. - Pressing and releasing Alt inside
WebView2activates WinForms menu, but the focus remains insideWebView2:

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
- Install .NET 6.0.100-preview.7 SDK:
https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-6.0.100-preview.7-windows-x64-installer - Clone the test repo:
https://github.com/noseratio/WebView2WinFormsSysHotKeys . - Run:
dotnet run
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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