MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Feature]: Add event on the Context Menu when it closes after an option or function was selected.
@Lakshmisha-KS is already working on this.
Since Feb 25, 2026.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature/enhancement you need
Could you add an event when the Context menu closes after an option or function was selected.
ContextMenu.OnClose or ContextMenu.ActionTaken
Thank you.
The scenario/use case where you would use this feature
When an installed extension function, or listed option was selected or click on, the Context Menu closes.
I would like to take action when the Context Menu closes in order to set variables to handle the Context Menu close action e.g. Create a NewTab or Tab Change or Tab Changing etc.
How important is this request to you?
Impactful. My app's user experience would be significantly compromised without it.
Suggested implementation
When an extension function, or listed option was selected or click on, the Context Menu closes.
I would like to take action when the Context Menu closes in order to set variables to handle the Context Menu close action e.g. Create a NewTab or Tab Change or Tab Changing etc.
What does your app do? Is there a pending deadline for this request?
When ever you get the time, but it would be most helpful if you did add this feature. It would enhance the functioning of the WebView2 runtime control if this is implemented.
Thank you.
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.