WebView & WebView2 Do Not Properly Respond to Arrow Key Inputs
@pomianowski is already working on this.
Since Apr 29, 2024.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
WebView and WebView2 do not properly respond to arrow key inputs. This problem specifically arises when the WebView is situated within a Page. In contrast, when the WebView is embedded in a ui:FluentWindow (like the gallery app's MonacoWindow), the arrow key inputs are handled correctly.
It seems that there might be a discrepancy in how key input events are managed between different container types. This issue can affect navigation and user interaction within the WebView when it's placed in standard pages.
To Reproduce
Open the gallery application and navigating to the WebView example page, Try to input random texts into the provided text box. use the left or right arrow keys does not alter the cursor position or navigate through the text, indicating that the arrow keys are non-functional in this context.
Expected behavior
I would like the webview in typical navigatable Page can respond to arrow Key inputs correctly.
Screenshots
No response
OS version
Windows 11
.NET version
.Net 8.0
WPF-UI NuGet version
3.0.4.0
Additional context
No response
Contributor guide
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.