I think the correct TJSEventHandler type definition is: TJSEventHandler = reference to function(event: TJSEvent): Boolean; -- Sent from: http://pas2js.38893.n8.nabble.com/