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:
Dandan Bi 2015-05-26 11:36:52 +00:00 committed by dandanbi
parent ec22bede67
commit 1e9c722958
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}