focusOnOpen property

bool focusOnOpen
final

Whether focus moves into the surface when it opens (a popover, a menu) and Tab stays inside it; true by default. A hover card leaves focus on its anchor.

It goes to the surface's first focusable widget, except in a menu (arrowKeyNavigation) a pointer opened: there it goes to the surface itself and no item is lit, as a menu opened with a click shows none; Down then focuses the first item and Up the last. A menu opened from the keys, or by a screen reader, starts on its first item.

Implementation

final bool focusOnOpen;