Liferay.Loader.define("data-engine-taglib@3.3.53/data_layout_builder/js/hooks/useKeyDown.es",["module","exports","require","liferay!frontend-js-react-web$react"],(function(e,n,t){window;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function useKeyDown(e,n,t=window){const o=(0,r.useRef)();(0,r.useEffect)((()=>{o.current=e}),[e]),(0,r.useEffect)((()=>{const handler=()=>{window.event.keyCode===n&&o.current(window.event)},e=t.current?t.current:t;return e.addEventListener("keydown",handler),()=>e.removeEventListener("keydown",handler)}),[t,o,n])};var r=t("liferay!frontend-js-react-web$react")}));
//# sourceMappingURL=useKeyDown.es.js.map