Hey Bubblers, I just released “Prevent Right Click Context Menu” — a very simple plugin to prevent users from opening the context menu when they right click on your app’s page.
- You can turn it on or off using workflow actions
- You can add an exception element (via HTML id attribute) so that users can still open the context menu by right clicking the exception element.
Example in run mode and editor mode.
Let me know if you have any questions or feedback. Enjoy!
It works, thank you for your work. FYI, when you leave the exception element html id blank, it causes an issue. The issue doesn’t prevent the page from working, but thought you should know. I saw the code, I think it’s because the field isn’t listed as optional. Thank you so much.
This is cool!
Perhaps it would be useful if exceptions could be made with classes also? For instance, all elements with class
allow-context would work without the need to register IDs one by one…
I know class manipulation aren’t natively supported, but there are almost 1000 apps using the plugin Classify which allow just that…
Just an idea!
Thanks for the feedback @tona – I’ve make that adjustment to make the exception element optional and pushed the update. Feel free to upgrade the plugin and take a look. Let me know how that works!
Thank you for the update. For some reason, the update is not showing in my plugins. It’s still saying version 1.0.1 is the latest available. I checked the code and it has been changed, so that’s strange.
@tona – Strange, did you try refreshing your Bubble page?
I refreshed it then, but the update is showing today. Thank you much.
Good to hear it’s showing up now. Enjoy!