Description

The user has pressed a keyboard key.

Syntax

Private Sub object_KeyDown(Window, lKeyCode, lShift, bHandled)

The KeyDown Event syntax has these parts:

PartDescription
objectA McWindows object.
WindowA McWindow object.
lKeyCodeA Long value.
virtual-key code of the pressed key
      lKeyData - contains repeat count, shift key, etc. Refer to
Windows SDK documentation on WM_KEYDOWN.
lShiftA Long value.
bHandledA Boolean value.

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.