onFocus method

  1. @HostListener('focus')
void onFocus(
  1. FocusEvent event
)

Implementation

@HostListener('focus')
void onFocus(FocusEvent event) {
  MenuItem? item = _itemForTarget(event.target);
  if (item == null) return;

  activeModel?.activate(item);
}