From 383dfa8e68a23d2cadae4499e008b714cf8b8367 Mon Sep 17 00:00:00 2001 From: Srinath Date: Mon, 9 Feb 2026 17:36:55 +0530 Subject: [PATCH] AddedCtrl + B Packing Ctrl + Y Weight / Amount shortcut key funtionalies --- .../BSBillingTable6/BSBillingTable6.jsx | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BSBillingTable6.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BSBillingTable6.jsx index f6263dd..5433a60 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BSBillingTable6.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable6/BSBillingTable6.jsx @@ -267,16 +267,20 @@ const BSBillingTable6 = () => { } // 👉 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);