Skip to content

Conversation

@plakhin
Copy link
Contributor

@plakhin plakhin commented May 14, 2025

This PR adds keyboard key binding to start/cancel seek.
Currently the s key is bonded.

@plakhin
Copy link
Contributor Author

plakhin commented May 14, 2025

@lhc70000, the initial idea was to bind the space key, the same YouTube does: on single press it cycles through pause/resume, on hold (repeated entry) it increases the speed (the onKeyDown provides isRepeat which would be useful in this case). However, I couldn't intercept the space key down event — it simply doesn't work, may be because the "pause" interceptor has the highest priority and stops event propagation, idk. Also, unfortunately, keys like "Shift" or "Meta" can't be used alone as they're treated as modifiers and must be used in combination with at least one any other key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant