Remove deprecated event.attrName and use event.originalEvent.attrName instead

See https://bugzilla.wikimedia.org/show_bug.cgi?id=66064