ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / LayoutTool Class / OnToolKeyDown Method
A LayoutViewKeyEventArgs that contains the event data.

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

    Parameters

    args
    A LayoutViewKeyEventArgs 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 LayoutViewKeyEventArgs to true and override the HandleKeyDownAsync virtual method.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also