MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Add support for sending keyboard input to WebView2 - SendKeyEvent
Open
@Lakshmisha-KS is already working on this.
Since Feb 12, 2025.
feature request
tracked
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
From some reasons inside CoreWebView2.AddHostObjectToScript(....) method I need to catch pressed keys and programmatically send its to webview2. Previously, in Cefsharp I used : ChromiumWebBrowser.GetHost().SendKeyEvent() .
Do we have some equivalent in webview2 ? I tried to use JS script, but here is problem because Monaco Editor for some subpages is used.
Please help
Regards,
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.