Home Notices Documents Classes Download Others Rice
Classes  >  domkeyeventargs  >  CtrlKey
domkeyeventargs class : CtrlKey getter

Description

Gets a value indicating whether the Ctrl key is pressing.

Syntax

domkeyeventargsInstance.CtrlKey

Arguments

None

Return value

ClassDescription
boolA value indicating whether the Ctrl key is pressing.

Sample code

1:

open method void anyHandler(domkeyeventargs dkea)

2:

...

3:

bool pressing = dkea.CtrlKey;

4:

...

5:

endmethod

Notes

KeyDown event :

If the event was raised by the Ctrl key, returns true. If the event was raised by a key other than the Ctrl key, returns false.

KeyPress event :

It returns true if the Ctrl key is pressing when an event raises. Returns false if it is not pressing. Please note that this event will not raise when pressing only the Ctrl key.

KeyUp event :

If the event was raised by the Ctrl key, returns true. If the event was raised by a key other than the Ctrl key, returns false.

Links for reference

None

Copyright © Rice All rights reserved.