Table of Contents

Method OnAccepting

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

OnAccepting(CommandEventArgs)

protected override bool OnAccepting(CommandEventArgs args)

Parameters

args CommandEventArgs

Returns

bool

Remarks

Enter means "activate this item" — not "accept/submit". When Accept arrives from a key binding (e.g. Enter), translates it into Activate so it flows through the bridge architecture (MenuItem → Menu → CommandBridge → PopoverMenu), dismissing the menu. Without this, Accept would bubble past the menu hierarchy to the host view, triggering unintended exit behavior.