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