MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Need extra click to get focus when context menu is up

Open
#1,456 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

We noticed an issue with context menu in WebView2. When the context menu is up, if you click on a WPF element (eg. textbox) outside of the webview2 browser, the textbox doesn't get focus. The click only dismisses the context menu. You would need to click on the textbox again to get focus. This doesn't happen with CEF browser or the old WebBrowser.

Can this be fixed?

Thanks!

AB#34101549

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce issue 1456 with a WebView2 context menu and a WPF textbox outside the browser; compare with the CEF and old WebBrowser behavior noted in the report. Done means a single click on the textbox both dismisses the context menu and gives the textbox focus.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.