import{ki as e}from"./vendor-frame-CwiylG4Y.js";var t=e(),r=({submitOnCmdEnter:e=!0,onSubmit:r,onKeyDown:n,...o})=>(0,t.jsx)("form",{...o,onSubmit:e=>{o.method||e.preventDefault(),r?.(e)},onKeyDown:t=>{e&&"Enter"===t.key&&(t.metaKey||t.ctrlKey)&&t.currentTarget.requestSubmit(),n?.(t)}});export{r as t};