TouchEvent: ctrlKey property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The read-onlyctrlKey property of theTouchEvent interface returns a boolean value indicating whether thecontrol (Control) key is enabled when the touch event is created. If this key is enabled, the attribute's value istrue. Otherwise, it isfalse.
This property isRead only.
In this article
Value
A boolean value that istrue if thecontrol key is enabled for this event; andfalse if thecontrol is not enabled.
Examples
TheTouchEvent.altKey example includes an example of this property's usage.
Specifications
| Specification |
|---|
| Touch Events> # dom-touchevent-ctrlkey> |