Liferay.Loader.define("data-engine-taglib@3.3.26/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(e,n,t=window){const o=(0,r.useRef)();(0,r.useEffect)((()=>{o.current=e}),[e]),(0,r.useEffect)((()=>{const e=()=>{window.event.keyCode===n&&o.current(window.event)},r=t.current?t.current:t;return r.addEventListener("keydown",e),()=>r.removeEventListener("keydown",e)}),[t,o,n])};var r=t("liferay!frontend-js-react-web$react")}));
//# sourceMappingURL=useKeyDown.es.js.map