import{useEffect as e}from"react";var n=function(n){var t=n.keyCode,o=n.callback,r=function(e){(e.metaKey||e.ctrlKey)&&e.keyCode===t&&(e.preventDefault(),o())};e((function(){return document.addEventListener("keydown",r),function(){document.removeEventListener("keydown",r)}}),[t])};export{n as useKeyboardControl};
//# sourceMappingURL=useKeyboardControl.js.map
