ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTool Class / OnToolKeyDown Method
A MapViewKeyEventArgs that contains the event data.

In This Topic
    OnToolKeyDown Method (MapTool)
    In This Topic
    Occurs when a key is pressed and the view has focus.
    Syntax
    protected virtual void OnToolKeyDown( 
       MapViewKeyEventArgs args
    )
    Protected Overridable Sub OnToolKeyDown( _
       ByVal args As MapViewKeyEventArgs _
    ) 

    Parameters

    args
    A MapViewKeyEventArgs that contains the event data.
    Remarks
    This method is intended to perform synchronous operations associated with a key down event. To perform any asynchronous operations set the handled property on the MapViewKeyEventArgs to true and override the HandleKeyDownAsync virtual method.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also