From 11af08da22c3190cbea80812fb04e56ad7419a9d Mon Sep 17 00:00:00 2001 From: Srinath Date: Mon, 9 Feb 2026 17:13:22 +0530 Subject: [PATCH] Added shortcut key funtionalies --- .../BSBillingTable3/BSBillingTable3.jsx | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx index 298f997..5af7c1e 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx @@ -241,15 +241,20 @@ const BSBillingTable3 = () => { // 👉 CTRL shortcuts if (!event.ctrlKey) return; - if (key === 'q') { - event.preventDefault(); - handleShortcut('qty'); - } - - if (key === 'e') { - event.preventDefault(); - handleShortcut('price'); - } + if (key === 'q') { + event.preventDefault(); + handleShortcut('qty'); + } else if (key === 'e') { + event.preventDefault(); + handleShortcut('price'); + } else if (key === 'y') { + event.preventDefault(); + handleShortcut('Parcel'); + } else if (key === 'b') { + event.preventDefault(); + handleShortcut('weightAmount'); + } + }; window.addEventListener('keydown', handleKeyDown);