TouchEvent ctrlKey Property
Example
Find out whether or not the "CTRL" key was pressed when you touch the screen:
 if (event.ctrlKey) {
  alert("The CTRL key was pressed!");
 } else {
  alert("The CTRL key was NOT pressed!");
}
Try it Yourself »
Definition and Usage
The ctrlKey property returns a Boolean value that indicates whether or not the "CTRL" key was pressed when a touch event was triggered.
Note: Many touch devices do not have an "CTRL" key, and will therefore always return false.
Note: This property is read-only.
Browser Support
| Property | |||||
|---|---|---|---|---|---|
| ctrlKey | 22 | yes | 52 | Not supported | Not supported | 
Syntax
 event.ctrlKey
Technical Details
| Return Value: | 
 A Boolean, indicating whether the "CTRL" key was pressed when the 
  touch event occurred.
  Possible values: 
  | 
|---|
Related Pages
HTML DOM reference: MouseEvent ctrlKey Property
HTML DOM reference: TouchEvent altKey Property
HTML DOM reference: TouchEvent metaKey Property
HTML DOM reference: TouchEvent shiftKey Property

