Skip to content

Conversation

codestothestars
Copy link

Enables vertical scrolling using the Up and Down arrow keys on the keyboard if the video is not focused, which previously did not work in most of the UI. This improves accessibility for keyboard users and is consistent with other major video apps such as YouTube, Crunchyroll, and Twitch. To supplement, I focus the video container when the user enters fullscreen so the arrows control volume at that point.

I'm not a big fan of passing a child element a reference to an ancestor, but this pattern is consistent with code elsewhere in the app. I would prefer to factor the event listeners out of the PlayerControlsView but I went with a lighter touch here to start.

If preserving the previous global functionality as an option is desired, I could add a user setting for toggling this.

Consistent with other major video apps.
@futo-cla-pr-labler
Copy link

Please sign our contributor license agreement at https://cla.futo.org

@futo-cla-pr-labler
Copy link

Please sign our contributor license agreement at https://cla.futo.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants