Emitted when the menu item is activated. The menu item can be activated by the user selecting the item or by calling activate.
Callback function