mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
798 B
JavaScript
1 line
798 B
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[7089],{37089:function(e,t,s){"use strict";s.r(t),s.d(t,{startFocusVisible:function(){return o}});const n=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp"],o=()=>{let e=[],t=!0;const s=document,o=t=>{e.forEach(e=>e.classList.remove("ion-focused")),t.forEach(e=>e.classList.add("ion-focused")),e=t},i=()=>{t=!1,o([])};s.addEventListener("keydown",e=>{t=n.includes(e.key),t||o([])}),s.addEventListener("focusin",e=>{if(t&&e.composedPath){const t=e.composedPath().filter(e=>!!e.classList&&e.classList.contains("ion-focusable"));o(t)}}),s.addEventListener("focusout",()=>{s.activeElement===s.body&&o([])}),s.addEventListener("touchstart",i),s.addEventListener("mousedown",i)}}}]); |