Added shortcut key funtionalies

This commit is contained in:
Srinath 2026-02-09 17:13:22 +05:30
parent 60f9960427
commit 11af08da22
1 changed files with 14 additions and 9 deletions

View File

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