Table of Contents

Property DefaultKeyBindings

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

DefaultKeyBindings

Gets or sets the default key bindings shared across all views. Only commands that a view supports (via GetSupportedCommands()) are actually bound when ApplyKeyBindings(params Dictionary<Command, PlatformKeyBinding>?[]) is called.

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<Command, PlatformKeyBinding>? DefaultKeyBindings { get; set; }

Property Value

Dictionary<Command, PlatformKeyBinding>