MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Add support for sending keyboard input to WebView2 - SendKeyEvent

Open
#3,671 11 comments 1 reaction 3 assignees View on GitHub

@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,

AB#45786265

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.