summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2015-05-26 11:36:52 +0000
committerdandanbi <dandanbi@Edk2>2015-05-26 11:36:52 +0000
commit1e9c72295813e914edd0f80cd105bb5ff83823d2 (patch)
tree66039356aaba6b870d9f81f75ef7bd5df66ed9fb /MdeModulePkg
parentec22bede67007028f2e49571f3fd67dcdbc08c84 (diff)
downloadedk2-platforms-1e9c72295813e914edd0f80cd105bb5ff83823d2.tar.xz
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
index 4a347a9b65..a0b87ff7be 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
@@ -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;
}