dropin

alternative frontend for dropout.tv
git clone https://git.ce9e.org/dropin.git

commit
71bcde960a5b30ccae8587add24f55cda2adb5f1
parent
33b3a87bccae31e0898a19fdca853cf32fc2a376
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-02-26 20:06
fixup: avoid shortcuts when active element accepts input

see https://stackoverflow.com/questions/79469008/

Diffstat

M static/video.js 4 +++-

1 files changed, 3 insertions, 1 deletions


diff --git a/static/video.js b/static/video.js

@@ -72,7 +72,9 @@ video.addEventListener('ended', event => {
   72    72 });
   73    73 
   74    74 document.addEventListener('keyup', event => {
   75    -1     if (event.key === 'f') {
   -1    75     if (document.activeElement.matches('input')) {
   -1    76         // ignore
   -1    77     } else if (event.key === 'f') {
   76    78         if (document.fullscreenElement) {
   77    79             document.exitFullscreen();
   78    80         } else {