Table of Contents

Property DefaultKeyBindings

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

DefaultKeyBindings

Gets or sets the default key bindings for TreeView<T>. These are layered on top of DefaultKeyBindings when the view is created.

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>

Remarks

Only single-command bindings are included here. The instance-dependent ObjectActivationKey binding is added directly in the constructor.

This property is not decorated with ConfigurationPropertyAttribute because TreeView<T> is a generic type. Use ViewKeyBindings to override key bindings for TreeView via configuration.