@L2D22 Thanks for your contribution! Just a few points to consider:
We make the development in the unstable branch and merge the unstable to the master branch before the release. So can you please open the pull request to the unstable branch?
A previous pull request #38 that is merged to the unstable branch added an option to the extension called as "taphold" to give an option to the user either to use right-click or taphold to open the context-menu. But I think your contribution gives more flexibility to the user on choosing the event to open the context-menu. Therefore, you can consider to remove the code from previous pull request and add your code instead.
Allow users to configure the cy.on('event') with the context menu options.