diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-16 21:01:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-16 21:01:59 +0000 |
commit | c135f24b0587521a65e62f6f5e2d0c3759418baf (patch) | |
tree | 86523fa2102139f0aad07686599159ce7683e336 /Master/texmf-dist/tex/latex/media4svg/media4svg.sty | |
parent | 50c55c1c30db81e8e314559953aa6306055660d8 (diff) |
media4svg (16apr20)
git-svn-id: svn://tug.org/texlive/trunk@54773 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/media4svg/media4svg.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/media4svg/media4svg.sty | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/media4svg/media4svg.sty b/Master/texmf-dist/tex/latex/media4svg/media4svg.sty index 5738846318b..3690ce2b318 100644 --- a/Master/texmf-dist/tex/latex/media4svg/media4svg.sty +++ b/Master/texmf-dist/tex/latex/media4svg/media4svg.sty @@ -38,8 +38,8 @@ \RequirePackage{xparse} \RequirePackage{atbegshi} -\def\g@msvg@date@tl{2020/04/14} -\def\g@msvg@version@tl{0.3} +\def\g@msvg@date@tl{2020/04/16} +\def\g@msvg@version@tl{0.4} \ProvidesExplPackage{media4svg}{\g@msvg@date@tl}{\g@msvg@version@tl} {acrobat-9/X compatible media} @@ -222,7 +222,7 @@ height='0'~ onfocus=''~ onkeydown=' - if($("\g_msvg_id_tl").controls){return;} + event.preventDefault();event.stopPropagation(); switch(event.key){ case "~": if($("\g_msvg_id_tl").paused){ @@ -259,6 +259,11 @@ case "End": $("\g_msvg_id_tl").currentTime=$("\g_msvg_id_tl").duration; break; + case "F11": + if ($("\g_msvg_id_tl").requestFullscreen){ + $("\g_msvg_id_tl").requestFullscreen(); + } + break; } ' ></svg>{?nl} @@ -291,7 +296,7 @@ event.target.focus(); % Firefox '~ onkeydown=' - if(event.target.controls){return;} + event.preventDefault();event.stopPropagation(); switch(event.key){ case "~": if(event.target.paused){ @@ -328,7 +333,12 @@ case "End": event.target.currentTime=event.target.duration; break; - } + case "F11": + if (event.target.requestFullscreen){ + event.target.requestFullscreen(); + } + break; + } '~ onmouseup='event.preventDefault();event.stopPropagation(); event.target.play();'~ |