<!-- Thanks for opening an issue! A few things to keep in mind: - The issue tracker is only for bugs and feature requests. - Before reporting a bug, please try reproducing your issue against the latest version of Electron. - If you need general advice, join our Slack: http://atom-slack.herokuapp.com --> * Electron version: 1.6.2 * Operating system: macOS ### Expected behavior Allow users to register a callback for menu open and close events. ```javascript const menu = new Menu() menu.onOpen(() => { /* Do something when the menu opens */ }) menu.onClose(() => { /* Do something when the menu closes */ }) ``` <!-- What do you think should happen? --> ### Actual behavior Not supported NSMenuDelegate exposes these events: https://developer.apple.com/reference/appkit/nsmenudelegate Not sure about Windows or Linux
Activity
shubham2892 commentedon Jun 20, 2017
MenuWillOpenandMenuDidCloseevents are already implemented here, I wonder why they are not documented. 🤔codebytere commentedon Jan 23, 2018
i'll try to get to this this week
codebytere commentedon Jan 27, 2018
@shubham2892 @smith-kyle PR is in flight at #11754, will be merged pending review