MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Emulate Ctrl-F KeyDown event with DevTools method

Open
#1,278 6 comments 0 reactions 1 assignee View on GitHub

@david-risney is already working on this.

Since Dec 6, 2023.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I try to show FindString dialog by sending (emulating) Ctrl-F keys pressed to WebView2. When WebView2 has focus I call CallDevToolsProtocolMethod(L"Input.dispatchKeyEvent", L"{"type":"keyDown", "modifiers":2,"unmodifiedText":"F"}", ...), but nothing happens on screen and no errors raising. What I am doing wrong?

VC++ 2017
Windows 7 64bit

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.