Table of Contents

Event HasFocusChanging

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Raised when HasFocus is about to change.

public event EventHandler<HasFocusEventArgs>? HasFocusChanging

Returns

EventHandler<HasFocusEventArgs>
Raised when is about to change.

Remarks

Cancel the event to prevent the focus from changing.

Use HasFocusChanged to be notified after the focus has changed.