NULLify CTRL press in link clicks
I have a requirement in preventing the links in my applications from spilling over to new window/tab through CTRL keys. I have the following in my page now:
$(document).click(function(e)
{
if (e.ctrlKey)
{
return (false);
}
});
This seems to be working fine for DIV clicks however link clicks are totally ignored. I am looking to see if I can NULLIfy the CTRL keypress alone and make it appear like simple click. Is that possible? A kind of forcing the event keyCode for ctrl alone to be zero?