I\'m trying to detect whether the shift key is being pressed while the cursor is moved over a particular element. The function fires, but only after I click on another
Working sample,
MouseEvent.shiftKey, MouseEvent.ctrlKey
MouseEvent.ctrlKey
MouseEvent.shiftKey
function keypress_test(event) { // false, no press, // true, pressed console.log(event.ctrlKey) console.log(event.shiftKey) }