MicrosoftEdge / MicrosoftEdge/WebView2Feedback
WindowsAppSDK app WebView2 doesn't forward keyboard input to host app
Open
@champnic is already working on this.
Since May 18, 2023.
bug
tracked
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
The keyboard inputs don't reach the hosting app at all.
Version
WinAppSDK version: 1.2.230313.1 (using the WebView2 incorporated in the WinAppSDK)
Framework: Win32
OS: Win11
Repro Steps
- See https://github.com/Sytta/Winui3Windowing/tree/main/WebView2Sample
- MainPage hosts a WebView2 and Empty page doesn't host anything.
- If we nagivate to MainPage, the PreviewKeyUp/Down events never get hit. While as in the ExamplePage, the PreviewKeyUp/Down receives the keyboard inputs.
- To change the navigation (MainPage/ExamplePage) for testing, please change the code here
I see that there were similar issues reported for WPF framework #468, what would be the proposed solution so that the host app gets the keyboard inputs?
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.
Assessment
This issue has not been assessed yet.