* [edk2-devel] [PATCH v1] MdeModulePkg: Ignore TAB in string input
@ 2023-09-18 7:25 oscar.li
2023-10-19 2:30 ` Dandan Bi
0 siblings, 1 reply; 2+ messages in thread
From: oscar.li @ 2023-09-18 7:25 UTC (permalink / raw)
To: devel; +Cc: Oscar Li, Dakota Chiang, Dandan Bi, Eric Dong
From: Oscar Li <oscar.li@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.li@intel.com>
Cc: Dakota Chiang <dakota.chiang@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@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 (#108797): https://edk2.groups.io/g/devel/message/108797
Mute This Topic: https://groups.io/mt/101435625/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [edk2-devel] [PATCH v1] MdeModulePkg: Ignore TAB in string input
2023-09-18 7:25 [edk2-devel] [PATCH v1] MdeModulePkg: Ignore TAB in string input oscar.li
@ 2023-10-19 2:30 ` Dandan Bi
0 siblings, 0 replies; 2+ messages in thread
From: Dandan Bi @ 2023-10-19 2:30 UTC (permalink / raw)
To: Li, Oscar, devel@edk2.groups.io; +Cc: Chiang, Dakota, Dong, Eric
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Thanks,
Dandan
-----Original Message-----
From: Li, Oscar <oscar.li@intel.com>
Sent: Monday, September 18, 2023 3:26 PM
To: devel@edk2.groups.io
Cc: Li, Oscar <oscar.li@intel.com>; Chiang, Dakota <dakota.chiang@intel.com>; Bi, Dandan <dandan.bi@intel.com>; Dong, Eric <eric.dong@intel.com>
Subject: [PATCH v1] MdeModulePkg: Ignore TAB in string input
From: Oscar Li <oscar.li@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.li@intel.com>
Cc: Dakota Chiang <dakota.chiang@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@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/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-19 2:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-18 7:25 [edk2-devel] [PATCH v1] MdeModulePkg: Ignore TAB in string input oscar.li
2023-10-19 2:30 ` Dandan Bi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox