This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IA > IAnnotationConstructor Interface > IAnnotationConstructor.OnKeyDown Method (ArcObjects .NET 10.5 SDK) |
Called when a key is pressed.
[Visual Basic .NET] Public Sub OnKeyDown ( _ ByVal keyState As Integer, _ ByVal shift As Integer _ )
[C#] public void OnKeyDown ( int keyState, int shift );
OnKeyDown may be used to listen for one or more keys being depressed and expose additional functionality. All annotation constructors have a set of keys that they respond to. See the list of hotkeys in the online help. Each constructor implements the 'W' key functionality to derive the text from the first feature under the cursor; this functionality is available to new annotation constructors.