diff --git a/kolibri/plugins/epub_viewer/assets/src/views/EpubRendererIndex.vue b/kolibri/plugins/epub_viewer/assets/src/views/EpubRendererIndex.vue index 333a8d95577..5857f97de8d 100644 --- a/kolibri/plugins/epub_viewer/assets/src/views/EpubRendererIndex.vue +++ b/kolibri/plugins/epub_viewer/assets/src/views/EpubRendererIndex.vue @@ -498,6 +498,13 @@ this.errorLoading = true; this.reportLoadingError(err); }); + + // sets the iframe to be the first element in the tab order + // fixes accessibility for users using tabs to navigate the page + this.rendition.on(EVENTS.RENDITION.RENDERED, (_, view) => { + view.iframe.tabIndex = 1; + view.focus(); + }); }); }, beforeDestroy() {