Skip to content

Custom context menu items (Remove / Save As / Inspect) #2371

Open
@ajtruckle

Description

Example:

if (!m_displayPageUrlContextSubMenuItem)
{
	items->RemoveValueAtIndex(0); // Back
	itemsCount--;
	items->RemoveValueAtIndex(0); // Forward
	itemsCount--;
	items->RemoveValueAtIndex(5); // Share
	itemsCount--;
	items->RemoveValueAtIndex(5); // Separator
	itemsCount--;
}

Looks like:

ContextMenu2

Questions:

  1. Is the default menu always going to be the same? I am concerned about using the literal index positions. If the default menu changes my code then breaks. What is the best approach?
  2. Save As does nothing in my application. Why?
  3. Can we change Inspect (which works) to Inspect Element?
  4. How can we add new functional menu item for View Page Source?

AB#39691823

Metadata

Labels

bugSomething isn't workingdocdocumentation issuestrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions