We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec396e9 commit 7ddc7ebCopy full SHA for 7ddc7eb
src/scripts/h5p-multi-media-choice-option.js
@@ -283,14 +283,15 @@ export class MultiMediaChoiceOption {
283
firstFocusable.focus();
284
event.preventDefault();
285
}
286
- else if ( event.shiftKey ) /* shift + tab */ {
+ else if (event.shiftKey) /* shift + tab */ {
287
if (document.activeElement === firstFocusable) {
288
lastFocusable.focus();
289
290
291
292
else /* tab */ {
293
- if (document.activeElement === lastFocusable) {
+ // Uploaded videos have their own tab handling
294
+ if (document.activeElement === lastFocusable && lastFocusable.nodeName !== 'VIDEO') {
295
296
297
0 commit comments