Table of Contents

Method OnActivating

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

OnActivating(CommandEventArgs)

Called when the user has performed an action (e.g. Activate) causing the View to change state or preparing it for interaction. Set CommandEventArgs.Handled to true and return true to indicate the event was handled and processing should stop.

protected override bool OnActivating(CommandEventArgs args)

Parameters

args CommandEventArgs

The event arguments.

Returns

bool

true to stop processing.

Remarks

If CanFocus is false and a valid HotKey is set, the hotkey is forwarded to the next peer in SuperView's SubViews — mirroring Label so that a non-focusable Markdown describing a focusable view (e.g. a TextField) moves focus to that view when its hotkey is pressed.