MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Webview2 embedded inside wpf application focus issue
Open
@champnic is already working on this.
Since Jun 16, 2022.
bug
tracked
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
We have integrated webview2 in my wpf application. In that application we have a Iframe child window with a drop down for which we want to handle the preview key down event by keeping the e.handled as true. But we noticed that webview2 does not provide focus to child window, and to explicitly set focus we have to use thread sleep which is hitting the performance.
We have attached web and wpf application for more information. Steps to reproduce the issue :
- Host the web application(websample) on IIS manager locally.
How to host:
-Open webSample in visual studio in administrator mode
-Right click on project and click on publish
-Now update it to release mode and publish it locally
-Click on publish - Open IIS manager and right click on sites and click on add website
- Assign some site name and also assign the same published local path in physical pàth text box
Also, make sure the port no. Is 8081 - Run the wpf application in admin mode
- On main window click on Open iframe button
- Now you can see iframe child window which doesn't get focus and also, end key won't work for drop down after making e.handled as true .
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.