I am trying to do a hidden hotkey on my website. i want to make it so that if you type ctrl + dev, and alert will pop up.
here is what i have so far.
$(document).keypress(function(e) {
if(e.ctrlKey) {
if (e.which == 4 && e.which == 5 && e.which == 22) {
alert("it worked");
}
}
});
it works if i just have one check with out the && but not with all those. I know that might be wrong, but how do i make it work 4 = d, 5 = e, 22 = v in case you didn't know.
Any help would be greatly appreciated.