From f28d385fa0cd6cd1789180ed5e77fb152828540e Mon Sep 17 00:00:00 2001 From: Srinath Date: Mon, 9 Feb 2026 17:35:51 +0530 Subject: [PATCH] AddedCtrl + B Packing Ctrl + Y Weight / Amount shortcut key funtionalies --- .../BSBillingTable4/BSBillingTable4.jsx | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBillingTable4.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBillingTable4.jsx index c0665f2..f43aa0b 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBillingTable4.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable4/BSBillingTable4.jsx @@ -294,15 +294,20 @@ const BSBillingTable4 = () => { // 👉 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);