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({