"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useKeyboardControl=function(t){var n=t.keyCode,r=t.callback,o=function(e){(e.metaKey||e.ctrlKey)&&e.keyCode===n&&(e.preventDefault(),r())};e.useEffect((function(){return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}}),[n])};
//# sourceMappingURL=useKeyboardControl.js.map
