diff --git a/src/runtime/composables/defineShortcuts.ts b/src/runtime/composables/defineShortcuts.ts index 9ba03bb3c9..68fd14a4cf 100644 --- a/src/runtime/composables/defineShortcuts.ts +++ b/src/runtime/composables/defineShortcuts.ts @@ -41,7 +41,7 @@ export function extractShortcuts(items: any[] | any[][]) { function traverse(items: any[]) { items.forEach((item) => { - if (item.kbds?.length && (item.select || item.click)) { + if (item.kbds?.length && (item.onSelect || item.onClick)) { const shortcutKey = item.kbds.join('_') shortcuts[shortcutKey] = item.onSelect || item.onClick }