fixed context menu event order

The event order now allows the individual context menu items to fire before the global event removes the menu entirely.