问题
I want to be able to use a right-click in a single page (react) app. Every time I right click, the browser handles it instead of letting my app handle it. This seems to happen with Chrome and Safari. Is there a way to tell either browser to pass the right-click to the web app?
回答1:
onContextMenu
Please refer to the official documentation to get a complete list of mouse events.
来源:https://stackoverflow.com/questions/59543150/can-i-configure-my-browser-to-let-my-web-app-receive-a-right-click-instead-of-th