This works… except that if a right-click is executed over one of the audio buttons, it still counts as a mousedown and sends both the cancel command, as well as the playback function.
Is there a way to make it NOT do the default action and ONLY do the Cancel_Playback on a right-click?
In any event handler, you have access to the event object (aliased to e in your mousedown function). That object can prevent default actions. Here’s how:
Ok… so the problem with the preventDefault is that I am not trying to prevent any default behavior. The mousedown events that I am trying to block on right-mousedown are other functions.
So I guess what I am looking for is a way to say when e.which == 3, don’t do these functions but do this function instead…