AddedCtrl + B Packing Ctrl + Y Weight / Amount shortcut key funtionalies

This commit is contained in:
Srinath 2026-02-09 17:36:55 +05:30
parent e6540642b7
commit 383dfa8e68
1 changed files with 14 additions and 10 deletions

View File

@ -267,16 +267,20 @@ const BSBillingTable6 = () => {
} }
// 👉 CTRL shortcuts // 👉 CTRL shortcuts
if (!event.ctrlKey) return; if (!event.ctrlKey) return;
if (key === 'q') {
if (key === 'q') { event.preventDefault();
event.preventDefault(); handleShortcut('qty');
handleShortcut('qty'); } else if (key === 'e') {
} event.preventDefault();
handleShortcut('price');
if (key === 'e') { } else if (key === 'y') {
event.preventDefault(); event.preventDefault();
handleShortcut('price'); handleShortcut('Parcel');
} } else if (key === 'b') {
event.preventDefault();
handleShortcut('weightAmount');
}
}; };
window.addEventListener('keydown', handleKeyDown); window.addEventListener('keydown', handleKeyDown);