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:
@ -190,6 +190,13 @@ ReadString (
|
|||||||
gST->ConOut->EnableCursor (gST->ConOut, CursorVisible);
|
gST->ConOut->EnableCursor (gST->ConOut, CursorVisible);
|
||||||
return EFI_DEVICE_ERROR;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user