import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t}from"./jsx-runtime-CiQ1k8xo.js";import{lt as n}from"./vscode-api-DjORcpSo.js";import{n as r}from"./rpc-CJwVeoy_.js";var i=n(),a=e(t(),1);function o(){let e=(0,i.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,a.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(),r.hotkeyWindowHotkeys?.dismiss())}export{o as t};
//# sourceMappingURL=use-hotkey-window-dismiss-on-escape-DKGLLTh8.js.map