From a9d5ed572b25fe1aa6582a7ea989a8a0ce5736d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20H=C3=A4user?= <8659494+mhaeuser@users.noreply.github.com> Date: Sun, 28 Feb 2021 10:44:19 +0100 Subject: [PATCH] OcBootManagementLib: Do not abort password input on ESC KeySupport key repeats may cancel password input immediately when ESC is used to summon the UI. --- Library/OcBootManagementLib/OcBootManagementLib.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Library/OcBootManagementLib/OcBootManagementLib.c b/Library/OcBootManagementLib/OcBootManagementLib.c index 0f452d77..1eef381c 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. -- GitLab