Table of Contents

Method InjectKey

Namespace
Terminal.Gui.Testing
Assembly
Terminal.Gui.dll

InjectKey(Key, InputInjectionOptions?)

Injects a keyboard event. Handles encoding, queueing, and processing automatically.

public void InjectKey(Key key, InputInjectionOptions? options = null)

Parameters

key Key

The key to inject.

options InputInjectionOptions

Optional injection options.