Skip to content

ElectronMenuItemConstructorOptions.click method

ElectronMenuItemConstructorOptions › click

Unofficial

Will be called when the menu item is clicked.

Signature:

click(menuItem: ElectronMenuItem, browserWindow: ElectronBrowserWindow | undefined, event: KeyboardEvent): void

Parameters:

ParameterTypeDescription
menuItemElectronMenuItemThe menu item that was clicked.
browserWindowElectronBrowserWindow | undefinedThe focused window, or undefined if none.
eventKeyboardEventThe keyboard event associated with the click.

Returns: voidNothing.