Applies to: desktop apps only
Occurs when the user presses a key while the InkEdit control has focus.
HRESULT KeyDown( Long *pKey, short ShiftKey );
The virtual-key code of the key pressed by the user.
A member of the InkShiftKeyModifierFlags enumeration, that indicates which modifier keys are depressed at the time of the event.
Specifies that the SHIFT key was used as a modifier.
Specifies that the CTRL key was used as a modifier.
Specifies that the ALT key was used as a modifier.
If this event succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This event method is defined in the _IInkEditEvents interface. The _IInkEditEvents interface implements the IDispatch interface with an identifier of DISPID_IeeKeyDown.
Minimum supported client
|Windows XP Tablet PC Edition|
Minimum supported server
- InkShiftKeyModifierFlags Enumeration
- KeyPress Event [InkEdit Control]
- KeyUp Event [InkEdit Control]
Build date: 3/6/2012