The code below will work in FF (Firefox), but not in chrome. Chrome doesn't act on altKey, or ctrlKey, but it will act if I write e.shiftKey
Is there a way to make it so that chrome will act on altkey and ctrlkey (and where it still works in FF too)?
document.onkeypress = function(e) {
if(e.altKey && e.shiftKey) {
alert("Test");
}
}
I found a topic discussing differences in chrome and FF on this matter, but unfortunately, this didn't help me: