I have disabled the right click on the whole page, but I need it to be enabled in a single input to paste text, since javascript does not allow to take the contents of the clipboard.
I have it disabled like this:
$(document).bind("contextmenu",function(e){
return false;
});
And I try to enable the right click on the element "#insertlink" (which is an input) or on "#pegarlink" (which is a div) in the following way:
$("#pegarlink").bind("contextmenu", function(e){
return true;
});
But it does not work for me, probably because the previous rule is more strict, how can I enable the right menu on a single input?
Thanks