pMe | (Object) Reference to the PmgObject object where the event rises. |
---|---|
pEvent | (Object) Reference to object describing detailed information about the specific event. pEvent.Code - (Long) Pressed key code. In case of an ANSI character the value equals the char code, for the other codes see Keys constants. In order to convert such numeric code into String the Pm.StringCodeFrom method can be used. pEvent.Shift - (Boolean) Indication of concurrent pressing the Shift key. pEvent.Alt - (Boolean) Indication of concurrent pressing the Alt key. |
if (pEvent.Action == 1 && pEvent.Ctrl)
{
switch (pEvent.Code)
{
case 65:
//Key A
//Calling some 1st action
break;
case 66:
//Key B
//Calling some 2nd action
break;
}
}