Skip to content

[Problem/Bug]: Provide a way to focus the Find popup #5061

Open
@pushkin-

Description

What happened?

I start a Find session:

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

If I'm focused in the main window, I want Ctrl+F to focus on this popup, so I intercept ctrl+f and call StartAsync again.

Nothing happens, and the popup isn't focused.
Though focus is getting lost which makes this particularly bad. If I remove that second call to StartAsync, focus stays where it was.

(Was about to make a separate issue, but will keep it with this one; if StartAsync doesn't actually move focus to the Find popup or [as is the case in my code where I'm playing around with different workarounds] if StartAsync doesn't even show the Find popup, it would be preferable to not move focus away from where it was since I can now get into a state where focus is gone and tabbing around doesn't restore it)

This works fine in browsers

Importance

Moderate. My app's user experience is affected, but still usable.
Changing to Important due to the focus issue I mention above.

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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