Fires when the user presses a modification key.
Parameters
Parameter | Description |
---|---|
Key | The modification key pressed |
Shift | Indicates whether or not the SHIFT key is down |
Ctrl | Indicates whether or not the CTRL key is down |
Remarks
The OnModifyKey event fires when a modification key is pressed. There are two modification keys, Insert and Delete. Use this event if you want to add support for these keys. The Key parameter will be set to "INS" if the insert key is pressed or "DEL" if the delete key is pressed. The Shift and Ctrl parameters indicate the current state of the SHIFT and CTRL keys respectively. They will be set to 1 if their respective keys are pressed.
Example
Transfer Param1 to Key Transfer Param2 to Shift Transfer Param3 to Ctrl // Allow use to delete items the selected items If Key EQ "DEL" then SelItems = Get_Property(@Window:".OLE_TREE", "OLE.SelectedItems") Send_Message(@Window:".OLE_TREE", "OLE.RemoveItems", SelItems) end