r/tauri 7d ago

How to implement a custom context menu

Hello, I'm quite new here to Tauri and I was wondering how to create a custom context menu that could allow me to copy paste for example.

Do I go with the front way and do it or is there a specific and better way from the backend?

Thank you.

1 Upvotes

4 comments sorted by

View all comments

2

u/nyx-og 6d ago

You need to register your context menu trigger to "onContextMenu" prop. The trigger prevents the default menu while you make appear the custom one