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

In This Topic
    HandleKeyDownAsync Method (MapTool)
    In This Topic
    Occurs when the OnToolKeyDown event is handled.
    Syntax
    protected virtual Task HandleKeyDownAsync( 
       MapViewKeyEventArgs args
    )
    Protected Overridable Function HandleKeyDownAsync( _
       ByVal args As MapViewKeyEventArgs _
    ) As Task

    Parameters

    args
    A MapViewKeyEventArgs that contains the event data.

    Return Value

    A Task that represents a key down event.
    Remarks
    This method is intended to perform asynchronous operations associated with a key down event. It will be called if you override the OnToolKeyDown virtual method and set the handled property on the MapViewKeyEventArgs to true.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also