Table of Contents

Method AssignHotKeyToView

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

AssignHotKeyToView(View)

Assigns a unique hotkey to a single view based on its Title.

protected bool AssignHotKeyToView(View view)

Parameters

view View

The view to assign a hotkey to.

Returns

bool

true if a hotkey was assigned; otherwise, false.

Remarks

This method checks if the view's title already contains a hotkey specifier and preserves it if available. Otherwise, it assigns a new hotkey from the first available character in the title.