SocketTools .NET Edition

Terminal.KeyMapped Event

Occurs when a mapped key is pressed.

[Visual Basic]
Public Event KeyMapped As KeyMappedEventHandler
[C#]
public event KeyMappedEventHandler KeyMapped;

Event Data

The event handler receives an argument of type Terminal.KeyMappedEventArgs containing data related to this event. The following Terminal.KeyMappedEventArgs properties provide information specific to this event.

Property Description
Alt Gets a value indicating whether the ALT key was pressed.
Control Gets a value indicating whether the CTRL key was pressed.
KeyCode Gets a value which specifies the key that was pressed.
KeyValue Gets the escape sequence mapped to the special key.
Shift Gets a value indicating whether the SHIFT key was pressed.

Remarks

This event is generated when the user presses a special key while the emulation window has focus, and that key is mapped to a string using the KeyMap array.

See Also

Terminal Class | SocketTools Namespace