Parameter | Description |
---|---|
hMsg | The message handle of a published procedure that will be called when the key event occurs |
iKeyCode | JavaScript key code to handle |
bShift | Determines whether Shift key needs to be pressed to trigger event |
bAlt | Determines whether Alt key needs to be pressed to trigger event |
bCtrl | Determines whether Crtrl key needs to be pressed to trigger event |
Procedure RemoveKeyHandler Handle hMsg Integer iKeyCode Boolean bShift Boolean bAlt Boolean bCtrl
Call: | Send RemoveKeyHandler hMsg iKeyCode bShift bAlt bCtrl |
It is possible to assign custom key handlers to controls and containers. This is done by using the AddKeyHandler and RemoveKeyHandler procedures. These procedures are client actions and the administration of key handlers is kept on the client. This means that these procedures should be used after the control is available on the client or when it is loaded to the client. Common practice will be to call these procedures during the OnLoad event.
See AddKeyHandler for more information about key handlers.