Skip to content

ElectronMenu.sendActionToFirstResponder method

ElectronMenu › sendActionToFirstResponder

Unofficial

Sends the action to the first responder of application. This is used for emulating default macOS menu behaviors. Usually you would use the role property of a menu item. darwin only.

Signature:

sendActionToFirstResponder(action: string): void

Parameters:

Parameter Type Description
action string The action to send to the first responder.

Returns: void