ElectronMenu.sendActionToFirstResponder method
ElectronMenu › sendActionToFirstResponder
Unofficial
Sends theaction 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): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| action | string | The action to send to the first responder. |
Returns: void