Chirality inversion of Majorana edge modes in a Fu–Kane heterostructure