pMe | (Object) Reference to the PmaPanel object where the event rises. |
---|---|
pEvent | (Object) Reference to an object describing detailed information about the specific event.
pEvent.Action - (Long) [for reading] Indication of pressing or releasing the key.
0 - releasing the key
1 - pressing the key pEvent.Code - (Long) [for reading] Pressed key code. In case of an ANSI character the value equals the char code, for the other codes see Keys constants.
For conversion of 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) [for reading] Indication of concurrent pressing the Alt key. |
if (pEvent.Action == 1 && pEvent.Ctrl)
{
switch (pEvent.Code)
{
case 67:
// Key C
// Close this panel
pMe.Close();
break;
case 66:
// Key B
// Some another action
break;
}
}