KeyDown Event

KeyDown Event

Occurs when the user presses a key while the InkEdit control has focus.

Declaration

[C++]

HRESULT KeyDown(
    long* pKey,
    short ShiftKey
);

Parameters

pKey

[in] The virtual-key code of the key pressed by the user.

ShiftKey

[in] A member of the InkShiftKeyModifierFlags enumeration, that indicates which modifier keys are depressed at the time of the event.

Name Description
IKM_Shift Specifies that the SHIFT key was used as a modifier.
IKM_Control Specifies that the CTRL key was used as a modifier.
IKM_Alt Specifies that the ALT key was used as a modifier.

Remarks

This event method is defined in the _IInkEditEvents interface. The _IInkEditEvents interface implements the IDispatch Leave Site interface with an identifier of DISPID_IeeKeyDown.

Applies To