Table of Contents

Property UsedHotKeys

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

UsedHotKeys

Gets or sets the set of hotkeys that are already used or should not be used when AssignHotKeys is enabled.

This property is used to ensure that automatically assigned hotkeys do not conflict with hotkeys used elsewhere in the application. Set UsedHotKeys before adding subviews if there are hotkeys that may conflict with other views.

Replacing the set reconciles tracked automatic reservations with the new set. Directly mutating this set changes which keys are available; automatic reservations are reconciled on the next assignment.

Set this property to a non-null set.

public HashSet<Key> UsedHotKeys { get; set; }

Property Value

HashSet<Key>