Native event-handler

Fixes #7