openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 515 B
JavaScript
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Cv as t,Gv as n,Kv as r,nM as i}from"./control-ui-boot-shared-DFTSUQQ0.js";function a(e,t){let r=t.composedPath();if(t.metaKey||t.ctrlKey||t.altKey||r.some(e=>e instanceof Element&&e.matches(`input, textarea, select, [contenteditable=true]`)))return;let a=i(t);if(a)for(let i of[e,...r]){let e=i instanceof HTMLElement&&n(i,a);if(e){t.preventDefault(),t.stopPropagation(),e.click();return}}}function o(){return(o=e((()=>{t(),r()})))()}export{o as n,a as t};