Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JW8-2607] Keep controls visible is activated via keyboard #3259

Merged
merged 3 commits into from Jan 23, 2019

Conversation

DanFerrer
Copy link
Contributor

This PR will...

Only call this.userInactive inside the userInactiveTimeout if players controls weren't shown through a keyboard interaction.

Why is this Pull Request needed?

We want to keep the controls visible when a user is currently focused on the player for better accessibility.

Are there any points in the code the reviewer needs to double check?

Are there any Pull Requests open in other repos which need to be merged with this?

Addresses Issue(s):

JW8-2607

@johnBartos
Copy link
Contributor

johnBartos commented Jan 23, 2019

Warnings
⚠️

🛠 There are modified src files, but no test changes. Add tests if you're able to.

Generated by 🚫 dangerJS

@jwplayer-robot
Copy link

MULTI Build for commit 5d3efca passed.
🏗️ jwplayer build SUCCESS
🏗️ jwplayer browserstack tests SUCCESS
🏗️ jwplayer-commercial build SUCCESS
🏗️ jwplayer-commercial browserstack tests SUCCESS
🥒 Automated Tests SUCCESS
🍆 Manual Tests
📺 Views

@DanFerrer DanFerrer changed the title Keep controls visible is activated via keyboard [JW8-2607] Keep controls visible is activated via keyboard Jan 23, 2019
@jwplayer-robot
Copy link

MULTI Build for commit 8bef82f passed.
🏗️ jwplayer build SUCCESS
🏗️ jwplayer browserstack tests SUCCESS
🏗️ jwplayer-commercial build SUCCESS
🏗️ jwplayer-commercial browserstack tests SUCCESS
🥒 Automated Tests SUCCESS
🍆 Manual Tests
📺 Views

@johnBartos johnBartos merged commit 9d338b4 into master Jan 23, 2019
@@ -71,10 +70,20 @@ export default class Controls {
this.activeTimeout = setTimeout(this.userInactiveTimeout, remainingTime);
return;
}
if (this.playerContainer.querySelector('.jw-tab-focus')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanFerrer why do we need this ? We already set the activeTimeout to 0 when tabbing inside the player

// keep controls active when navigating inside the player

@robwalch robwalch deleted the bugfix/keep-controls-shown-on-focus branch August 5, 2019 14:49
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.

None yet

5 participants