[idl-generator] Add event handler support

Is this hard coded?