From b6e14c4e6a1de74cc198714ab943279c62ab552f Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 5 Sep 2024 13:08:02 +0200 Subject: [PATCH] fix: refs #7911 fixed shortcut and related files --- src/boot/keyShortcut.js | 4 +++- src/components/VnTable/VnTable.vue | 1 - src/components/common/VnSectionMain.vue | 2 +- src/layouts/MainLayout.vue | 2 +- src/pages/Account/Card/AccountMailAlias.vue | 2 +- src/pages/Customer/Card/CustomerAddress.vue | 2 +- src/pages/Customer/Card/CustomerBalance.vue | 8 +++++++- src/pages/Customer/Card/CustomerCreditContracts.vue | 2 +- src/pages/Item/ItemList.vue | 2 +- src/pages/Item/ItemTypeList.vue | 2 +- src/pages/Shelving/ShelvingList.vue | 2 +- src/pages/Supplier/Card/SupplierAddresses.vue | 2 +- src/pages/Supplier/Card/SupplierAgencyTerm.vue | 2 +- src/pages/Ticket/Card/TicketPurchaseRequest.vue | 1 - src/pages/Ticket/Card/TicketTracking.vue | 1 - src/pages/Travel/Card/TravelThermographs.vue | 1 - src/pages/Wagon/Type/WagonTypeList.vue | 2 +- src/pages/Wagon/WagonList.vue | 2 +- src/pages/Worker/Card/WorkerPda.vue | 2 +- src/pages/Zone/Card/ZoneEvents.vue | 2 +- src/pages/Zone/Card/ZoneWarehouses.vue | 2 +- 21 files changed, 25 insertions(+), 21 deletions(-) diff --git a/src/boot/keyShortcut.js b/src/boot/keyShortcut.js index 2d84dcc6d..5afb5b74a 100644 --- a/src/boot/keyShortcut.js +++ b/src/boot/keyShortcut.js @@ -9,7 +9,9 @@ export default { ctrl: true, alt: true, callback: () => - document.querySelector('button[shortcut="+"]')?.click(), + document + .querySelector(`button[shortcut="${shortcut}"]`) + ?.click(), } : binding.value; diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 2582ea892..71ca07a53 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -291,7 +291,6 @@ defineExpose({