import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{Mvt as n,Nvt as r,Rut as i,zut as a}from"./app-initial-BHB6SClA.js";function o(){let e=(0,l.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,u.useEffect)(s,t)}function s(){let e=c;return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}}function c(e){e.key!==`Escape`||e.defaultPrevented||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||(e.preventDefault(),e.stopPropagation(),i.hotkeyWindowHotkeys?.dismiss())}var l,u,d=e((()=>{l=n(),u=t(r(),1),a()}));export{o as n,d as t};
//# sourceMappingURL=use-hotkey-window-dismiss-on-escape-aCDydxPp.js.map