Programmer's Guide > Programming and Scripting Techniques > Events > Event Types > MenuEvent Module
  
MenuEvent Module
The MenuEvent module has the following event types:
MenuPost
This event is dispatched before a menu item is displayed. The target of the event is the MenuItem being displayed. This event provides an opportunity for application programmers to disable or enable the menu item based on the nature of the current document or current cursor location.
Bubbles: No
Cancelable: No
Context Info: None
MenuSelected
This event is dispatched when a menu item is selected. The target of the event is the MenuItem being selected. The default action of this event is to execute the ACL commands attached to the menu item. If the preventDefault method is called, the default action will not occur.
Bubbles: No
Cancelable: Yes
Context Info: None