Method OnAccepting
OnAccepting(CommandEventArgs)
protected override bool OnAccepting(CommandEventArgs args)
Parameters
argsCommandEventArgs
Returns
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.