/* Configure what scope the hot key will impact. All hot keys have the same scope. The mixed hot keys with the different level are not supported. If no scope is set, the default scope will be FormSet level. After all registered hot keys are removed, previous Scope can reset to another level. */
EFI_STATUS EFIAPI SetScope(IN BROWSER_SETTING_SCOPE Scope)
/* Configure what scope the hot key will impact. All hot keys have the same scope. The mixed hot keys with the different level are not supported. If no scope is set, the default scope will be FormSet level. After all registered hot keys are removed, previous Scope can reset to another level. */
EFI_STATUS EFIAPI SetScope(IN BROWSER_SETTING_SCOPE Scope)
{
  if (Scope >= MaxLevel) {
    return EFI_INVALID_PARAMETER;
  }
  if (mBrowserScopeFirstSet || IsListEmpty (&gBrowserHotKeyList)) {
    gBrowserSettingScope  = Scope;
    mBrowserScopeFirstSet = FALSE;
  } else if (Scope != gBrowserSettingScope) {
    return EFI_UNSUPPORTED;
  }
  return EFI_SUCCESS;
}