MouseEvent shiftKey Property in JavaScript
MouseEvent shiftKey Property in JavaScript
The shiftKey property is a read-only property and it is used to return a Boolean value that indicates whether the SHIFT key was pressed when a mouse event was triggered or not.
Syntax:-
Its syntax is:- event.shiftKey
Return:-
Its return is:- true if the SHIFT key is pressed else false