I have a canvas and I display an image inside it. I have attached a jquery event to it, like this:
$("#mycanvas").mousedown(function(e) {
//Do something
e.preventDefault();
e.stopPropagation();
});
You can use contextmenu:
$("#mycanvas").contextmenu(function(e) {
//Do something
e.preventDefault();
e.stopPropagation();
});