How to prevent on JS the pasting into input by middle click?
<p>Middle button of mouse is paste the value into the input field. I want to override this functionality. It's possible?
I use the following code, but it doesn't prevent the default pasting:</p>

<pre><code>$('input').on('mouseup',function(e){
    //middle button is clicked
    if (e.which == 2)
    {
        e.preventDefault();

        $(this).val('another value');
    }
})
</code></pre>
