mirror of https://github.com/acidanthera/audk.git
MdeModulePkg:Support delete key
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17511 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ec22bede67
commit
1e9c722958
|
@ -190,6 +190,13 @@ ReadString (
|
|||
gST->ConOut->EnableCursor (gST->ConOut, CursorVisible);
|
||||
return EFI_DEVICE_ERROR;
|
||||
|
||||
case SCAN_DELETE:
|
||||
for (Index = CurrentCursor; StringPtr[Index] != CHAR_NULL; Index++) {
|
||||
StringPtr[Index] = StringPtr[Index + 1];
|
||||
PrintCharAt (Start + Index + 1, Top + 3, IsPassword && StringPtr[Index] != CHAR_NULL? L'*' : StringPtr[Index]);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue