add metaKey rule to event cancel function