summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-10-20 21:19:17 +0000
committerKarl Berry <karl@freefriends.org>2021-10-20 21:19:17 +0000
commit7d59aa72261d9a30f4c620403fabbcb5782b72b8 (patch)
treee134eddbd2c2e6e45a3ba3fb548f14e6f77943ba /Master/texmf-dist/tex
parent1698a53afcb811a14d3496081114d636543e6f41 (diff)
media4svg (20oct21)
git-svn-id: svn://tug.org/texlive/trunk@60815 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/media4svg/media4svg.sty19
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/media4svg/media4svg.sty b/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
index f5460deed67..8d20eafca55 100644
--- a/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
+++ b/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
@@ -25,9 +25,10 @@
\RequirePackage{l3keys2e}
-\def\g@msvg@date@tl{2021/01/25}
-\def\g@msvg@version@tl{0.5}
+\def\g@msvg@date@tl{2021/10/19}
+\def\g@msvg@version@tl{0.6}
+\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesExplPackage{media4svg}{\g@msvg@date@tl}{\g@msvg@version@tl}
{multimedia inclusion with dvisvgm}
@@ -199,7 +200,7 @@
\special{dvisvgm:raw {?nl}
\tl_if_blank:VT\g_msvg_controls_tl{
<svg~
- id='msvg@kbdCtrl@\g_msvg_id_tl'~
+ id='msvg_kbdCtrl_\g_msvg_id_tl'~
width='0'~
height='0'~
onfocus=''~
@@ -246,6 +247,9 @@
$("\g_msvg_id_tl").requestFullscreen();
}
break;
+ case "Tab":
+ event.target.blur();
+ break;
}
'
></svg>{?nl}
@@ -269,12 +273,12 @@
>{?nl}
<video~
x="0"~y="0"~
- id='msvg@\g_msvg_id_tl'~
+ id='msvg_\g_msvg_id_tl'~
width='100\msvg_percent:'~height='100\msvg_percent:'~
\g_msvg_controls_tl\g_msvg_autoplay_tl\g_msvg_loop_tl\g_msvg_muted_tl
\tl_if_blank:VT\g_msvg_controls_tl{
onplaying=' % in Chrome, keyboard control
- $("kbdCtrl@\g_msvg_id_tl").focus();% via separate <svg> element
+ $("kbdCtrl_\g_msvg_id_tl").focus();% via separate <svg> element
event.target.focus(); % Firefox
'~
onkeydown='
@@ -320,6 +324,9 @@
event.target.requestFullscreen();
}
break;
+ case "Tab":
+ event.target.blur();
+ break;
}
'~
onclick='event.stopPropagation();'~
@@ -776,7 +783,7 @@
<script~type="text/javascript">{?nl}
<![CDATA[{?nl}
function~$(id)~{
- return~document.getElementById("msvg@"+id.toString().trim());
+ return~document.getElementById("msvg_"+id.toString().trim());
};{?nl}
]]>{?nl}
</script>