Skip to content

[Problem/Bug]: FindNext/FindPrevious doesn't seem to do anything #5060

@pushkin-

Description

@pushkin-

What happened?

I start a Find session:

CoreWebView2FindOptions findOptions = focusedWindow.ActiveWebView.CoreWebView2.Environment.CreateFindOptions();
focusedWindow.ActiveWebView.CoreWebView2.Find.StartAsync(findOptions);

When focused in the Find popup, I can press F3 to go to the next search.

When I focus in the main window and press F3 (which will be intercepted by our code, and we'll call):

CoreWebView2FindWrapper findInterface = focusedWindow.ActiveWebView.CoreWebView2.Find;
findInterface.FindNext();

nothing happens.

It seems like we might have to be focused on the Find popup for that to work, but I don't see any Focus() API for the Find interface. It would be nice if that automatically moved focus to the Find UI and navigated to the next search result.

Before calling FindNext, I can inspect the Find interface and see that it's active and it has found some searches:

Image

This works fine in browsers.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Prerelease (Edge Canary/Dev/Beta)

Runtime Version

134.0.3101.0 canary

SDK Version

1.0.3079.0 prerelease

Framework

Winforms

Operating System

Windows 11

OS Version

23H2 - 22631.4602

Repro steps

can post an example if you'd like

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Metadata

Metadata

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions