Skip to content

Commit ef473c3

Browse files
authored
fix(defineShortcuts): always pass event to shotcut handler (#4516)
1 parent 93dff32 commit ef473c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/defineShortcuts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function defineShortcuts(config: MaybeRef<ShortcutsConfig>, options: Shor
122122

123123
if (shortcut.enabled) {
124124
e.preventDefault()
125-
shortcut.handler()
125+
shortcut.handler(e)
126126
}
127127
clearChainedInput()
128128
return

0 commit comments

Comments
 (0)