This document is archived and information here might be outdated. Recommended version. |
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.