A prevent-default decorator for DOM listeners