/* Function to dispatch the correct function based on a function key (F1...) */
EFI_STATUS MenuBarDispatchFunctionKey(IN CONST EFI_INPUT_KEY *Key)
/* Function to dispatch the correct function based on a function key (F1...) */
EFI_STATUS MenuBarDispatchFunctionKey(IN CONST EFI_INPUT_KEY *Key)
{
  UINTN  Index;
  Index = Key->ScanCode - SCAN_F1;
  if (Index > (NumItems - 1)) {
    StatusBarSetStatusString (L"Unknown Command");
    return EFI_SUCCESS;
  }
  return (MenuItems[Index].Function ());
}