ArcGIS Pro 2.7 API Reference Guide
HandleKeyDownAsync Method

ArcGIS.Desktop.Mapping Namespace > MapTool Class : HandleKeyDownAsync Method
A MapViewKeyEventArgs that contains the event data.
Occurs when the OnToolKeyDown event is handled.
Syntax
protected virtual Task HandleKeyDownAsync( 
   MapViewKeyEventArgs k
)
Protected Overridable Function HandleKeyDownAsync( _
   ByVal k As MapViewKeyEventArgs _
) As Task

Parameters

k
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 10, Windows 8.1

See Also

Reference

MapTool Class
MapTool Members