提交 a9d5ed57 编写于 作者: M Marvin Häuser

OcBootManagementLib: Do not abort password input on ESC

KeySupport key repeats may cancel password input immediately when ESC is used to summon the UI.
上级 9bd1d3b4
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册