Add event param to the handler. It was working before picking up conventional global window.event.