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

Description

Gets a value indicating whether the Alt key is pressing.

Syntax

domkeyeventargsInstance.AltKey

Arguments

None

Return value

ClassDescription
boolA value indicating whether the Alt key is pressing.

Sample code

1:

open method void anyHandler(domkeyeventargs dkea)

2:

...

3:

bool pressing = dkea.AltKey;

4:

...

5:

endmethod

Notes

KeyDown event :

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

KeyPress event :

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

KeyUp event :

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

Links for reference

None

Copyright © Rice All rights reserved.