Skip to content

Latest commit

 

History

History
93 lines (52 loc) · 3.18 KB

inkedit-keydown.md

File metadata and controls

93 lines (52 loc) · 3.18 KB
description ms.assetid title ms.topic ms.date
Occurs when the user presses a key while the InkEdit control has focus.
14b05b72-ae5d-416a-8ea5-9d9716c0967f
InkEdit.KeyDown event (Inked.h)
reference
05/31/2018

InkEdit.KeyDown event

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

Syntax

HRESULT KeyDown(
   Long  *pKey,
   short ShiftKey
);

Parameters

pKey

The virtual-key code of the key pressed by the user.

ShiftKey

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

Value Meaning
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.

Return value

If this event succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

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

Requirements

Requirement Value
Minimum supported client
Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server
None supported
Header
Inked.h (also requires inked_i.c)
Library
InkEd.dll

See also

InkEdit

InkShiftKeyModifierFlags Enumeration

KeyPress Event [InkEdit Control]

KeyUp Event [InkEdit Control]