Reviewed-by: Dandan Bi <dandan...@intel.com>

Thanks,
Dandan
-----Original Message-----
From: Li, Oscar <oscar...@intel.com> 
Sent: Monday, September 18, 2023 3:26 PM
To: devel@edk2.groups.io
Cc: Li, Oscar <oscar...@intel.com>; Chiang, Dakota <dakota.chi...@intel.com>; 
Bi, Dandan <dandan...@intel.com>; Dong, Eric <eric.d...@intel.com>
Subject: [PATCH v1] MdeModulePkg: Ignore TAB in string input

From: Oscar Li <oscar...@intel.com>

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4550

Ignore TAB when handling input characters for string input to be consistent 
with the usual behavior.

Signed-off-by: Oscar Li <oscar...@intel.com>
Cc: Dakota Chiang <dakota.chi...@intel.com>
Cc: Dandan Bi <dandan...@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
---
 MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c 
b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
index f70feeb55f..44e774ce24 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c
@@ -226,6 +226,9 @@ ReadString (
           return EFI_DEVICE_ERROR;

         }

 

+      case CHAR_TAB:

+        break;

+

       case CHAR_BACKSPACE:

         if ((StringPtr[0] != CHAR_NULL) && (CurrentCursor != 0)) {

           for (Index = 0; Index < CurrentCursor - 1; Index++) {

-- 
2.41.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109777): https://edk2.groups.io/g/devel/message/109777
Mute This Topic: https://groups.io/mt/101435625/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to