ArcGIS Pro 2.9 API Reference Guide
HandleKeyDownAsync Method (LayoutTool)

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

Parameters

k
A LayoutViewKeyEventArgs 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 LayoutViewKeyEventArgs to true.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

LayoutTool Class
LayoutTool Members