From 421bcf045d5ebf14305cf4a6f6916e12f8a207ef Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 26 Jun 2025 17:46:39 +0200 Subject: [PATCH] wait #7549 @0.5 --- _index.html | 2 +- js/libs/fluidbook/fluidbook.keyboard.js | 9 +++++++-- js/libs/fluidbook/fluidbook.video.js | 16 ++++++++++++---- style/videojs/videojs.less | 2 -- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/_index.html b/_index.html index c060fc29..05e0f54c 100644 --- a/_index.html +++ b/_index.html @@ -57,7 +57,7 @@ - +
diff --git a/js/libs/fluidbook/fluidbook.keyboard.js b/js/libs/fluidbook/fluidbook.keyboard.js index f47bdf02..951ac374 100644 --- a/js/libs/fluidbook/fluidbook.keyboard.js +++ b/js/libs/fluidbook/fluidbook.keyboard.js @@ -91,17 +91,22 @@ FluidbookKeyboard.prototype = { }, tabNavigation: function (selector, dir) { - var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"]:not(.ps__thumb-x):not(.ps__thumb-y), [contenteditable]'; + var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"]:not(.ps__thumb-x):not(.ps__thumb-y), [contenteditable], button'; var elements = $(selector).find(focusableElementsString); var list = []; + //console.log('elements', elements); $(elements).each(function () { if ($(this).attr('tabindex') == '-1') { + //console.log('skip because of tabindex', this); return; } - if ($(this).parents('[tabindex="-1"],.ignore-tab-children').length === 0 && $(this).is(':visible')) { + if ($(this).parents('.ignore-tab-children').length === 0 && $(this).is(':visible')) { list.push(this); + } else { + //console.log('skip because of parent or not being visible', this); } }); + //console.log('list', list); this._navigate(list, dir); }, diff --git a/js/libs/fluidbook/fluidbook.video.js b/js/libs/fluidbook/fluidbook.video.js index 21e6cb48..4cfd49dc 100644 --- a/js/libs/fluidbook/fluidbook.video.js +++ b/js/libs/fluidbook/fluidbook.video.js @@ -395,7 +395,9 @@ FluidbookVideo.prototype = { player.on('ended', function () { $this.fluidbook.contentlock.addAction(linkid, 'complete'); }); - }, openVideo: function (link) { + }, + + openVideo: function (link) { if (link === undefined) return false; link = $(link); @@ -449,7 +451,9 @@ FluidbookVideo.prototype = { popup.show(); //console.log(link); - }, initCache: function () { + }, + + initCache: function () { var $this = this; $('body').append(''); $("#videoframe").load(function () { @@ -464,9 +468,13 @@ FluidbookVideo.prototype = { cache.addEventListener('error', $this.logCacheEvent, false); $(this).hide(); }); - }, logCacheEvent: function (e) { + }, + + logCacheEvent: function (e) { + + }, - }, pauseAllVideos: function () { + pauseAllVideos: function () { $('video').each(function () { this.pause(); }); diff --git a/style/videojs/videojs.less b/style/videojs/videojs.less index 282f6886..8709837f 100644 --- a/style/videojs/videojs.less +++ b/style/videojs/videojs.less @@ -67,7 +67,6 @@ .vjs-fluidbook-skin .vjs-big-play-button:focus, .vjs-fluidbook-skin .vjs-big-play-button:hover { opacity: 1; - outline: none; } /* Fix #4362 */ @@ -118,6 +117,5 @@ } .video-js .vjs-control:focus:before, .video-js .vjs-control:hover:before, .video-js .vjs-control:focus { - outline: none; text-shadow: none; } \ No newline at end of file -- 2.39.5