Export (0) Print
Expand All
Key
M11
M12
M21
M22
Tag
Uri
X1
X2
Y1
Y2
Expand Minimize

Ctrl (KeyboardEventArgs)

Silverlight

Gets a value that specifies whether the control (CTRL) key was down when a keyboard event occurred.

value = eventargs.Ctrl

Type: Boolean

true if the CTRL key was down when the keyboard event occurred; otherwise, false.

This property is read/write, but should be considered read-only because there is no reason to change the reported information. There is no default.

For more information on basic concepts, see Events Overview for Silverlight or Keyboard Support. Note that these topics are written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.

Get the value of Keyboard.Modifiers and check for Control.

Use this property to detect key combinations involving the CTRL key that are otherwise interpreted as commands or gestures in other application programming models.

NoteNote:

This property applies to the Control key on the Macintosh.

Community Additions

ADD
Show:
© 2015 Microsoft