We are able to intercept a right-click event by adding an event listener to the Spread instance for the Context Menu.
Steps to Complete:
1. Get host element of current workbook
2. Add an event listener for the Context Menu
Step 1: Get the host element of current workbook
Get the host element using SpreadJS’s getHost() method:
Step 2: Add an event listener for Context Menu
Add an event listener to SpreadJS’s Context Menu, this is because the context menu is triggered when a user right-click.