Skip to content

RemoveKeyHandler - cBaseLocalControlHost

Removes a client side key handler

Type: Procedure

Parameters

Parameter Type Description
hMsg Handle The message handle of a published procedure that will be called when the key event occurs
iKeyCode Integer JavaScript key code to handle
bShift Boolean Determines whether Shift key needs to be pressed to trigger event
bAlt Boolean Determines whether Alt key needs to be pressed to trigger event
bCtrl Boolean Determines whether Crtrl key needs to be pressed to trigger event

Syntax

Procedure RemoveKeyHandler Handle hMsg Integer iKeyCode Boolean bShift Boolean bAlt Boolean bCtrl

Call Example

Send RemoveKeyHandler hMsg iKeyCode bShift bAlt bCtrl

Description

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.