(()=>{function t(n){return{restrict:"A",link:function(t,u,m){function e(t){var e,n,o,c,i;e=u[0],n=e.getBoundingClientRect(),o=n.left+1,c=n.right-1,i=n.top+1,n=n.bottom-1,document.elementFromPoint(o,i)!==e||document.elementFromPoint(c,i)!==e||document.elementFromPoint(o,n)!==e||document.elementFromPoint(c,n)!==e||u[0].disabled||t.key!==m.c8yKeyShortcut||u[0].click()}n.on("keydown",e),t.$on("$destroy",function(){n.off("keydown",e)})}}}t.$inject=["$document"],angular.module("c8y.ui").directive("c8yKeyShortcut",t)})();