Item Types and Native Actions

Each row of a page context-menu template has a kind and may bind an action through role. See Page Context Menu for the full API and examples.

Item kinds

kindTypeDescriptionPlatform
0CommandPerforms an action; without role it reports context-menu-clickWindows Linux
1SubmenuChildren point to its id through parent_idWindows Linux
2SeparatorNot clickableWindows Linux
3CheckboxToggles checked state; flags bit 1 means checkedWindows Linux
4RadioMutually exclusive in its group; flags bit 1 means checkedWindows Linux

role applies to commands, checkboxes, and radios only; submenus and separators do not need it.

Actions (role)

Editing

ActionrolePlatform
UndoundoWindows Linux
RedoredoWindows Linux
CutcutWindows Linux
CopycopyWindows Linux
PastepasteWindows Linux
Paste as plain textpasteAndMatchStyleWindows Linux
DeletedeleteWindows Linux
Select allselectAllWindows Linux
EmojiemojiWindows
ActionrolePlatform
BackbackWindows Linux
ForwardforwardWindows Linux
ReloadreloadWindows Linux
Force reloadforceReloadWindows Linux

Page

ActionrolePlatform
PrintprintWindows Linux
Save assaveAsWindows Linux
View sourceviewSourceWindows Linux
Inspect elementinspectElementWindows Linux
DevToolstoggleDevToolsWindows Linux
Zoom inzoomInWindows Linux
Zoom outzoomOutWindows Linux
Reset zoomresetZoomWindows Linux
Toggle full screentogglefullscreenWindows Linux
MinimizeminimizeWindows Linux
Close windowcloseWindows Linux
QuitquitWindows Linux
ActionrolePlatform
Open in new windowopenLinkInNewWindowWindows Linux
Save link assaveLinkAsWindows Linux
Copy linkcopyLinkWindows Linux
Copy link to highlightcopyLinkToHighlightWindows

Image

ActionrolePlatform
Save image assaveImageAsWindows Linux
Copy imagecopyImageWindows Linux
Copy image addresscopyImageAddressWindows Linux
Magnify imagemagnifyImageWindows
ShareshareWindows

Media

ActionrolePlatform
Save media assaveMediaAsWindows Linux
Copy linkcopyLinkWindows Linux
Show/hide controlstoggleMediaControlsLinux

The platform column shows availability; other platforms are disabled. role names ignore case and separators.