Table of Contents

Property ViewKeyBindings

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

ViewKeyBindings

Gets or sets per-view key binding overrides from configuration. The outer key is the view type name (e.g., "TextField"), the inner dictionary maps commands to platform key bindings.

IMPORTANT: This is a process-wide static property. Change with care. Do not set in parallelizable unit tests.

[ConfigurationProperty(Scope = typeof(SettingsScope))]
public static Dictionary<string, Dictionary<Command, PlatformKeyBinding>>? ViewKeyBindings { get; set; }

Property Value

Dictionary<string, Dictionary<Command, PlatformKeyBinding>>