This document is archived and information here might be outdated.  Recommended version.


IEditSketchExtension2.OnKeyDown Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketchExtension2 Interface > IEditSketchExtension2.OnKeyDown Method
ArcGIS Developer Help

IEditSketchExtension2.OnKeyDown Method

Called when a key is pressed.

[Visual Basic .NET]
Public Sub OnKeyDown ( _
    ByVal keyState As Integer, _
    ByVal shift As Integer _
)
[C#]
public void OnKeyDown (
    int keyState,
    int shift
);

Product Availability

Available with ArcGIS Desktop.

Remarks

Use this event to associate a hotkey to your custom sketch tool.

See Also

IEditSketchExtension2 Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditSketch Interface | IEditTask.Activate Method | IEditor Interface | IEditTask.Deactivate Method | ISnapEnvironment Interface | IEditEvents2 Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | Editor Class | Editor Library | IEditTask.OnFinishSketch Method | IEditAttributeProperties Interface | IEditTask.OnDeleteSketch Method | IEditProperties Interface | IExtension Interface