Custom context menu items (Remove / Save As / Inspect) #2371
Open
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:
Questions:
- 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?
- Save As does nothing in my application. Why?
- Can we change Inspect (which works) to Inspect Element?
- How can we add new functional menu item for View Page Source?