Event.ctrlKey (Property)

A Boolean value in MSIE that represents the state of the [control] key.


JScript - 3.0
Internet Explorer - 4.0
Opera - 5.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyEvent.ctrlKey

When an event is being processed, you may want to know the state of the [control] key on the keyboard.

This Boolean property returns true when the [control] key is pressed and false when it is not.

This property reflects the state of the [control] key at the instant when the event was triggered. The user may have released the key in the meantime, so you should not assume that if the [control] key was pressed earlier on that it is still pressed when the event handler is being executed.

DOM level 2 event handling moves this property to the MouseEvent object.

See also:Event.modifiers, MouseEvent.ctrlKey, onKeyDown

Property attributes: