learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
768 stars 647 forks source link

Make the Page Down and Page Up buttons work when viewing PDFs #10718

Open lsolesen opened 1 year ago

lsolesen commented 1 year ago

Observed behavior

Page Down and Page Up does not work when viewing PDFs.

Many PDFs that we use are slideshows. Therefore it would be nice, if you could use the Page Down and Page Up to switch to the next slide (next page) in the PDF. …

Errors and logs

Expected behavior

User-facing consequences

Steps to reproduce

Context

radinamatic commented 1 year ago

Hey @lsolesen , thank you for flagging this!

Could you please always fill in the Context section when you report the issues, it's there for a reason as it makes easier to debug the problem 😉

Tell us about your environment, including:
 * Kolibri version
 * Operating system
 * Browser

Testing this on Kolibri demo site (which is at version 0.15.12) in Firefox on Linux, I am able to use both the up & down arrow key, and the PgUp & PgDown key, but the trick is to have the PDF itself in focus. In other words, you cannot use arrow and page keys right after the PDF page loads, but if you use the Tab key to put the PDF in focus, you will be able to move through the pages with the keyboard. Granted we could improve this, I'm thinking of maybe fixing the skip-to-content feature that is currently broken, but it should be doable even now, just with a few more key presses. I tried to record the demo to illustrate:

https://github.com/learningequality/kolibri/assets/1457929/cbe5a79e-5286-472f-a53c-22b802c80b74

lsolesen commented 1 year ago

Doh. Sorry about that. I am in 0.15.11 on Windows in Chrome and Edge. I cannot bring the PDF im focus, so I can use the keyboard for navigating.

Installed 0.15.12 and it is the same. Tab only switches between the + - and Exit Screen. Clicking on the PDF with the mouse does not put it into focus either.

tor. 18. maj 2023 19.49 skrev Radina Matic @.***>:

Hey @lsolesen https://github.com/lsolesen , thank you for flagging this!

Could you please always fill in the Context section when you report the issues, it's there for a reason as it makes easier to debug the problem 😉

Tell us about your environment, including:

  • Kolibri version
  • Operating system
  • Browser

Testing this on Kolibri demo site (which is at version 0.15.12) in Firefox on Linux, I am able to use both the up & down arrow key, and the PgUp & PgDown key, but the trick is to have the PDF itself in focus. In other words, you cannot use arrow and page keys right after the PDF page loads, but if you use the Tab key to put the PDF in focus, you will be able to move through the pages with the keyboard. Granted we could improve this, I'm thinking of maybe fixing the skip-to-content feature that is currently broken, but it should be doable even now, just with a few more key presses. I tried to record the demo to illustrate:

https://github.com/learningequality/kolibri/assets/1457929/cbe5a79e-5286-472f-a53c-22b802c80b74

— Reply to this email directly, view it on GitHub https://github.com/learningequality/kolibri/issues/10718#issuecomment-1553408577, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEEOVLQB4JPVHBIK7QZ2TXGZOLDANCNFSM6AAAAAAYGK4HFI . You are receiving this because you were mentioned.Message ID: @.***>

pcenov commented 1 year ago

Hi @radinamatic, after additionally testing this in Windows, Ubuntu and Mac I can confirm the following:

GarvitSinghal47 commented 1 year ago

hi @radinamatic , if the issue is still up then i would love to work on it , can you assign it to me.

MisRob commented 1 year ago

Hi @GarvitSinghal47, thank you for your interest. Looking at @radinamatic's comment

Granted we could improve this, I'm thinking of maybe fixing the skip-to-content feature that is currently broken, but it should be doable even now, just with a few more key presses.

I think this issue needs some decisions at first before anyone can start working on it. We recently added some more good first issues and help wanted issues so before we have clearer expectations here, I'd recommend picking another one.

pcenov commented 1 month ago

Hi @radinamatic, after additionally testing this in Kolibri 0.17 RC 2 in Windows, Ubuntu and Mac I can confirm the following: