From e4e67a5d9e640f9998ff78bd5a05c62c89321a3a Mon Sep 17 00:00:00 2001 From: Yaswanth Kumar Bethu Date: Thu, 6 Feb 2025 21:54:48 +0530 Subject: [PATCH] Add Enter key functionality to trigger verification in PatientIndex (#10456) --- src/components/Patient/PatientIndex.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Patient/PatientIndex.tsx b/src/components/Patient/PatientIndex.tsx index e2c753e96df..c3901f64abd 100644 --- a/src/components/Patient/PatientIndex.tsx +++ b/src/components/Patient/PatientIndex.tsx @@ -236,6 +236,11 @@ export default function PatientIndex({ facilityId }: { facilityId: string }) { setYearOfBirth(value); } }} + onKeyDown={(e) => { + if (e.key === "Enter") { + handleVerify(); + } + }} />