I want to capture on anchor tag follwing things.
control + click event in JavaScript on windows / linux.
command + click event in JavaScript on mac os.
I used
\ <a onmousedown="isKeyPressed(event); return true;"> Click </a>
function isKeyPressed(event) {
if (event.shiftKey == 1) {
alert('success')
}
}
In windows and linux OS this code runs but do not on MAC. Basically I need to block control+click on anchor tag. so they can be blocked.
Any help is greatly appriciated.
Thanks!