import{useEffect as e}from"react";var n=function(n){var t=n.isRadiusActive,o=n.radiusPhase,r=n.cancel,i="idle"!==o;e((function(){if(t){var e=function(e){"Escape"===e.key&&i&&(e.preventDefault(),e.stopPropagation(),r())};return document.addEventListener("keydown",e,!0),function(){document.removeEventListener("keydown",e,!0)}}}),[t,i,r])};export{n as useRadiusKeyboardHandlers};
//# sourceMappingURL=useRadiusKeyboardHandlers.js.map
