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

Use spacebar for play/pause functionality #35

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johnarban
Copy link
Contributor

Use the spacebar for play pause. Taking this over has the secondary effect that spacebar cannot be used for toggling the checkmark or other things. this seems like an accessiblity concern. the checkboxes indicate the space or enter are valid, but then it won't be.

@johnarban johnarban linked an issue Feb 13, 2025 that may be closed by this pull request
@patudom
Copy link
Contributor

patudom commented Feb 13, 2025

@johnarban, thanks for pointing this out. I did some googling and it seems like the most commonly recommended keyboard control for media is to use the spacebar for play/pause, so we'll have to decide how to handle this conflict. I'm still googling and not seeing any solutions yet.

@patudom
Copy link
Contributor

patudom commented Feb 14, 2025

@Carifio24 suggests that we detect if one of the checkboxes is the active element. If yes, apply the space bar to check/uncheck the box. (or any other element that wants to use the space-bar). If nothing else that uses space bar is active, make space bar play/pause.

@patudom patudom added the 5. lower priority Would be nice but not critical label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5. lower priority Would be nice but not critical
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can we make the space bar toggle pause/play?
2 participants