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

CTRL+F dialog breaks window focus #1225

Closed
dmex opened this issue Apr 27, 2021 · 7 comments
Closed

CTRL+F dialog breaks window focus #1225

dmex opened this issue Apr 27, 2021 · 7 comments
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@dmex
Copy link

dmex commented Apr 27, 2021

Opening the find dialog using CTRL+F steals focus from the application window and does not return focus to the application window after pressing ESC or when manually closing the find dialog using the X button as seen here:

This is espeically problematic when hosting the browser inside a Win32 Tab Control/MDI window as users are forced to manually refocus the window to preform other actions.

This can be easily reproduced using the WebView2APISample:
image

Version
SDK: 1.0.818.41
Runtime: 90.0.818.46
Framework: Win32
OS: Win10

AB#32972107

@dmex dmex added the bug Something isn't working label Apr 27, 2021
@champnic
Copy link
Member

Thanks for the bug report @dmex! I've added it to our backlog to get fixed.

@champnic champnic added the tracked We are tracking this work internally. label Apr 29, 2021
@frankdekker
Copy link

@champnic
For us this is on of the last issues before we can deploy our application to our customers. Any timeline for a fix, or even better a Find API for this?

@champnic
Copy link
Member

This should be fixed in runtimes 100.0.1177.0+. Thanks!

@RendijsSmukulis
Copy link

This doesn't appear to be solved, or there's a different identical issue. Am running a newer runtime (101.0.1210.39), with latest pre-release SDK (1.0.1248-prerelease).

The best repro I could find is pressing Ctrl+F when focus is on WebView2, then clicking the app's title bar just above the find dialog. After that, the app stops responding to any keyboard or mouse inputs. See attached video.

2022-05-13.11-16-05.mp4

@champnic
Copy link
Member

@RendijsSmukulis We're still looking into the "Find on Page hang" bug. We are tracking the investigation in #1889.

@champnic
Copy link
Member

This is now fixed in 105.0.1323.0+. We had to revert the previous fix due to a regression.

@frankdekker
Copy link

frankdekker commented Sep 1, 2022

Hi @champnic Should this be fixed in 106.0.1368.0 canary? I can still reproduce the issue in our application. Using versions:

Windows: 10
.Net version: 6.0.6
WebView2 version: 1.0.1340.0
MS Edge version: 106.0.1368.0 canary

^ above information from the dll

Steps:

  1. basicly start application with 1 WebView2 instance
  2. start a search with CTRL+F
  3. with the mouse select a different window (from another application) so the application loses focus.
  4. click back to the original application
  5. application can't regain focus anymore

Pressing alt+tab away and to the application restores the problem and then ctrl+F works fine for quite some time.

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

4 participants