From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id EB09AAC13B5 for ; Mon, 18 Sep 2023 15:17:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=9peV9ymehYpnfN/ic2Ixibt82tqZXdFPpzCRytsRPqI=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1695050275; v=1; b=c3lRx0abiQEEmVOmCgYBE4bv8fzgobJwtv5YWcRjELxprpSB6VTSNXNJ4sipl2hSzps5L44k fa6+cx4hAvurKG08xeZ2bl3rVqnQxp2f/tzxhBLuhCW0MqgzxTEEu0XYsUktSO94QHfErHZPwkO fyFCnBD5L0SrhlZ8fRCwdk24= X-Received: by 127.0.0.2 with SMTP id W9GEYY7687511xWJWQh7XgZp; Mon, 18 Sep 2023 08:17:55 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.46236.1695021970144289780 for ; Mon, 18 Sep 2023 00:26:10 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="382330281" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="382330281" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 00:26:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="811253250" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="811253250" X-Received: from oscarli-mobl1.gar.corp.intel.com ([10.225.39.246]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 00:26:01 -0700 From: oscar.li@intel.com To: devel@edk2.groups.io Cc: Oscar Li , Dakota Chiang , Dandan Bi , Eric Dong Subject: [edk2-devel] [PATCH v1] MdeModulePkg: Ignore TAB in string input Date: Mon, 18 Sep 2023 15:25:46 +0800 Message-ID: <20230918072547.2433-1-oscar.li@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,oscar.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ZMQDXriqMUxxigabpGaqmQoLx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=c3lRx0ab; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Oscar Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4550 Ignore TAB when handling input characters for string input to be consistent= with the usual behavior. Signed-off-by: Oscar Li Cc: Dakota Chiang Cc: Dandan Bi Cc: Eric Dong --- MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/InputHandler.c b/MdeMo= dulePkg/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;=0D }=0D =0D + case CHAR_TAB:=0D + break;=0D +=0D case CHAR_BACKSPACE:=0D if ((StringPtr[0] !=3D CHAR_NULL) && (CurrentCursor !=3D 0)) {=0D for (Index =3D 0; Index < CurrentCursor - 1; Index++) {=0D --=20 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] -=-=-=-=-=-=-=-=-=-=-=-