Add Delete Key support for Setup Engine

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan...@intel.com<mailto:dandan...@intel.com>>
---
MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c 
b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
index 4a347a9..a0b87ff 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
@@ -188,10 +188,17 @@ ReadString (
         FreePool (BufferedString);
         gST->ConOut->SetAttribute (gST->ConOut, EFI_TEXT_ATTR (EFI_LIGHTGRAY, 
EFI_BLACK));
         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;
       }

       break;
--
1.9.5.msysgit.1
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to