I\'ve been wondering if I can detect CTRL and SHIFT key being pressed WITHOUT using keydown event.
The reason is that I am creating some sort o
You don't need any key events at all to detect Shift, Ctrl and Alt when mouse is clickedMDN.
The Event object contains this information:
element.addEventListener('click', function (e) {
console.log(e.shiftKey);
console.log(e.ctrlKey);
console.log(e.altKey);
});
A demo at jsFiddle.
These properties can be read also in keyboard event handlers.