title: how to detect right click in datatables plugin
body: <p>I want to detect if a user right-clicks a row in a table (datatables powered).</p>
  
  <p>Now, the following code works fine if I use a non-ajax source:</p>
  
  <pre><code>oTable.$('tr').mousedown(function(e) {
      if (e.which === 3) { //Right Mousebutton was clicked
          window.sData = oTable.fnGetData( this );
          jQuery(this).contextMenu({ x: e.pageX + 10, y: e.pageY + 10});
      }
  });
  </code></pre>
  
  <p>However, it doesn't work if I use an ajax source, so I looked around and tried:</p>
  
  <pre><code>jQuery('#myTable tbody').on( 'click', 'tr', function (e) {
      alert("a click!");
      if (e.which === 3) { //Right Mousebutton was clicked
          alert("actually it was a right click!");
      }
  });
  </code></pre>
  
  <p>This code does detect regular clicks, but if fails to recognize a right click. </p>
  
  <p>What am I doing wrong?</p>