HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Find out whether or not the "CTRL" key was pressed when a keyboard key is pressed
The ctrlKey property returns a Boolean value that indicates whether or not the "CTRL" key was pressed when a key event was triggered.
Property | |||||
---|---|---|---|---|---|
ctrlKey | Yes | Yes | Yes | Yes | Yes |
Return Value: |
A Boolean, indicating whether the "CTRL" key was pressed when the key event occured.
Possible values:
|
---|---|
DOM Version: | DOM Level 2 Events |
HTML DOM reference: KeyboardEvent altKey Property
HTML DOM reference: KeyboardEvent metaKey Property
HTML DOM reference: KeyboardEvent shiftKey Property