diff --git a/Library/OcBootManagementLib/OcBootManagementLib.c b/Library/OcBootManagementLib/OcBootManagementLib.c index 0f452d77f502655a5147055b6c7edbae27331efd..1eef381c9c98ccc623c6f40a645e7b56ebf7b000 100644 --- a/Library/OcBootManagementLib/OcBootManagementLib.c +++ b/Library/OcBootManagementLib/OcBootManagementLib.c @@ -393,14 +393,7 @@ OcShowSimplePasswordRequest ( OcToggleVoiceOver (Context, OcVoiceOverAudioFileEnterPassword); } - if (Key.ScanCode == SCAN_ESC) { - gST->ConOut->ClearScreen (gST->ConOut); - SecureZeroMem (Password, PwIndex); - // - // ESC aborts the input. - // - return EFI_ABORTED; - } else if (Key.UnicodeChar == CHAR_CARRIAGE_RETURN) { + if (Key.UnicodeChar == CHAR_CARRIAGE_RETURN) { gST->ConOut->ClearScreen (gST->ConOut); // // RETURN finalizes the input.