MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Can we disable custom context menu items?

Open
#3,311 5 comments 0 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

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

Description

I have read through the API again and I can see a get_isEnabled method for default menu items. But, what about our custom menu items?

Background

My editor has several View modes. And, certain features are only available in certain view modes. So I would like the ability to disable menu items on demand. I realise that I could add a variable to my CWebBrowser class that builds the menu, and only add it if variable has a certain value. But I prefer to disable.

Win32, C++

AB#43977307

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.