Description

The user has pressed a keyboard key, but not released it.

Syntax

Private Sub object_KeyDown(lKeyCode, lKeyData, bHandled)

The KeyDown Event syntax has these parts:

PartDescription
objectA McDisplay object.
lKeyCodeA Long value.

long : virtual-key code of the pressed key

lKeyDataA Long value.

long : contains repeat count, shift key, etc. Refer to Windows SDK documentation on WM_KEYDOWN.

bHandledA Boolean value.

VARIANT_BOOL * : Setting this parameter to true aborts the propagation of this event to other clients. The implication is that the client code that set this parameter has handled the event and no other clients should.

Remarks

The viewer does nothing with this event.