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.

Nested JSON View.DefaultKeyBindings overlays this dictionary by command when ApplyToStaticFacades() runs. Unmentioned commands keep these defaults.

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

public static Dictionary<Command, PlatformKeyBinding>? DefaultKeyBindings { get; set; }

Property Value

Dictionary<Command, PlatformKeyBinding>