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

This commit is contained in:
Srinath 2026-02-09 17:37:35 +05:30
parent 5dce357840
commit e84de5a95f
1 changed files with 9 additions and 4 deletions

View File

@ -285,15 +285,20 @@ const ComboSalesBillTable = () => {
// 👉 CTRL shortcuts
if (!event.ctrlKey) return;
if (key === 'q') {
if (key === 'q') {
event.preventDefault();
handleShortcut('qty');
}
if (key === 'e') {
} 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);