Fix some wrong event handling with markitup.