mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
880 B
JavaScript
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)}}}]);
|