Table of Contents

Method Keyboard

Namespace
Terminal.Gui.Tracing
Assembly
Terminal.Gui.dll

Keyboard(string, Key, string, string?, string)

Traces a keyboard event at the Driver or Application level (no view context).

[Conditional("DEBUG")]
public static void Keyboard(string source, Key key, string phase, string? message = null, string method = "")

Parameters

source string

Identifying string for the source (e.g., "Driver", "Application").

key Key

The key being processed.

phase string

The phase of processing.

message string

Optional additional context.

method string

Automatically captured caller method name.

Keyboard(View, Key, string, string?, string)

Traces a keyboard event at the View level.

[Conditional("DEBUG")]
public static void Keyboard(View view, Key key, string phase, string? message = null, string method = "")

Parameters

view View

The view processing the keyboard event.

key Key

The key being processed.

phase string

The phase of processing.

message string

Optional additional context.

method string

Automatically captured caller method name.

Keyboard(PlatformKeyBinding, string, string?, string)

Traces a keyboard binding event.

[Conditional("DEBUG")]
public static void Keyboard(PlatformKeyBinding binding, string phase, string? message = null, string method = "")

Parameters

binding PlatformKeyBinding

The keyboard binding being processed.

phase string

The phase of processing.

message string

Optional additional context.

method string

Automatically captured caller method name.