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

Description

Gets a value indicating whether the Shift key is pressing.

Syntax

domkeyeventargsInstance.ShiftKey

Arguments

None

Return value

ClassDescription
boolA value indicating whether the Shift key is pressing.

Sample code

1:

open method void anyHandler(domkeyeventargs dkea)

2:

...

3:

bool pressing = dkea.ShiftKey;

4:

...

5:

endmethod

Notes

KeyDown event :

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

KeyPress event :

It returns true if the Shift 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 Shift key.

KeyUp event :

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

Links for reference

None

Copyright © Rice All rights reserved.