Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pushkin- opened this issue Jan 27, 2025 · 0 comments
Open

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

pushkin- opened this issue Jan 27, 2025 · 0 comments
Assignees
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@pushkin-
Copy link

pushkin- commented Jan 27, 2025

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

@pushkin- pushkin- added the bug Something isn't working label Jan 27, 2025
@soumamazu soumamazu added the tracked We are tracking this work internally. label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants