Files
doneit-web/_platforms/browser/www/7089-es5.675f2f2f482fddae7099.js
T
tiago.kayaya 24e2a8f518 save
2021-08-18 18:58:02 +01:00

1 line
880 B
JavaScript

(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[7089],{37089:function(n,t,e){"use strict";e.r(t),e.d(t,{startFocusVisible:function(){return o}});var i=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp"],o=function(){var n=[],t=!0,e=document,o=function(t){n.forEach(function(n){return n.classList.remove("ion-focused")}),t.forEach(function(n){return n.classList.add("ion-focused")}),n=t},s=function(){t=!1,o([])};e.addEventListener("keydown",function(n){(t=i.includes(n.key))||o([])}),e.addEventListener("focusin",function(n){if(t&&n.composedPath){var e=n.composedPath().filter(function(n){return!!n.classList&&n.classList.contains("ion-focusable")});o(e)}}),e.addEventListener("focusout",function(){e.activeElement===e.body&&o([])}),e.addEventListener("touchstart",s),e.addEventListener("mousedown",s)}}}]);