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]: WPF and WebView2 - Setting Focusable property false does not prevent focusing on WebView component #5049

Open
adorian-alt opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working tracked We are tracking this work internally.

Comments

@adorian-alt
Copy link

What happened?

We need to allow users interaction with WebView component while having focus on another element.
Setting WebView2's Focusable property to false does not seem to work, clicking on WebView componet always focuses on it (GotFocus is triggered when clicking on WebView).

How can it be achieved?

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

131.0.2903.146

SDK Version

1.0.1823.32

Framework

WPF

Operating System

Windows 10

OS Version

19045.5247

Repro steps

Add two components to WPF application window - WebView2 and e.g.: textbox.
Set WebView2 component Focusable property to false.
Click on textbox - textbox is focused.
Click on WebView2 - textbox loses focus - WebView2 is focused.

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

@adorian-alt adorian-alt added the bug Something isn't working label Jan 22, 2025
@prija-microsoft prija-microsoft added the tracked We are tracking this work internally. label Jan 23, 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

2 participants