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

This commit is contained in:
Srinath 2026-02-09 17:37:12 +05:30
parent 383dfa8e68
commit 5dce357840
1 changed files with 14 additions and 8 deletions

View File

@ -260,14 +260,20 @@ const BSBillingTable7 = () => {
return; return;
} }
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') {
if (key === 'e') { event.preventDefault();
event.preventDefault(); handleShortcut('price');
handleShortcut('price'); } else if (key === 'y') {
} event.preventDefault();
handleShortcut('Parcel');
} else if (key === 'b') {
event.preventDefault();
handleShortcut('weightAmount');
}
}; };
window.addEventListener('keydown', handleKeyDown); window.addEventListener('keydown', handleKeyDown);