set_handler


function set_handler(handler:Handler)

Set the event handler.

Attention

Typically one does not call this directly, but rather uses the with statement, which is hard-wired to call this on exit to restore the previous handler.