mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(defineShortcuts): always pass event to shotcut handler (#4516)
This commit is contained in:
@@ -122,7 +122,7 @@ export function defineShortcuts(config: MaybeRef<ShortcutsConfig>, options: Shor
|
|||||||
|
|
||||||
if (shortcut.enabled) {
|
if (shortcut.enabled) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
shortcut.handler()
|
shortcut.handler(e)
|
||||||
}
|
}
|
||||||
clearChainedInput()
|
clearChainedInput()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user