Modified how events are handled and eliminated recursive event (focus?) handling.