UNPKG

@tindtechnologies/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

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