functions react/2 and dont_react/2 in modules Event.Xyz are generated; menu_bar reacts to selecting menu_item
added event type to userData of event, new event type recognition
removed unnecessary pattern matching of events
fixed typo
selecting menu_item triggers event