Fix #12656. Make event shorthands excludable.