"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useRadiusKeyboardHandlers=function(t){var n=t.isRadiusActive,r=t.radiusPhase,a=t.cancel,i="idle"!==r;e.useEffect((function(){if(n){var e=function(e){"Escape"===e.key&&i&&(e.preventDefault(),e.stopPropagation(),a())};return document.addEventListener("keydown",e,!0),function(){document.removeEventListener("keydown",e,!0)}}}),[n,i,a])};
//# sourceMappingURL=useRadiusKeyboardHandlers.js.map
