ArcGIS Pro 2.7 API Reference Guide
OnToolKeyDown Method

ArcGIS.Desktop.Mapping Namespace > MapTool Class : OnToolKeyDown Method
A MapViewKeyEventArgs that contains the event data.
Occurs when a key is pressed and the view has focus.
Syntax
protected virtual void OnToolKeyDown( 
   MapViewKeyEventArgs k
)
Protected Overridable Sub OnToolKeyDown( _
   ByVal k As MapViewKeyEventArgs _
) 

Parameters

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

See Also

Reference

MapTool Class
MapTool Members