-
Notifications
You must be signed in to change notification settings - Fork 498
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
Add hotkeys to the audio player #1203
Conversation
@RatulMaharaj is attempting to deploy a commit to the Syntax Team on Vercel. A member of the Team first needs to authorize it. |
f08a141
to
7e98703
Compare
@wesbos this should be ready for review now. |
675790f
to
fc6a223
Compare
thanks a ton - will review shortly |
This should also fix: #1338 |
Love the menu here. @wesbos would you mind if I were to merge this into my embed branch instead of main and merge with the work i'm doing? |
Hey @RatulMaharaj this is awesome however since it conflicts with some design changes I've made in a branch, I'm going to merge it there instead of main and massage the merge a bit. Thank you, this is great! |
* adds header icons * Add hotkeys to the audio player (#1203) * Add @svelte-put/shortcut as a dependency * Implement player hotkeys * Pause and reset show on player close * Implement minimized player * Move hotkeys into +layout and refactor into object * Remove unused test file * Implement hotkey modal * Add vitest tests for formatShortcut util * Rebuild lockfile after rebase * Update modal styling * Reset core-js version --------- Co-authored-by: Scott Tolinski <[email protected]> * moves status into it's own writable * Stop the player and reset player state when close is called (#1425) Co-authored-by: Scott Tolinski <[email protected]> * adds more complex player status to player state for more control * reworks hotkeys to fix play pause issues * major work on hotkeys and adds share window * modifies redirects hook to keep query params on redirect * adds completes timestamp at time links * slight tweak to hotkeys * ficxes icon issue caused by merge --------- Co-authored-by: Ratul Maharaj <[email protected]> Co-authored-by: Craig Holliday <[email protected]>
This PR Implements hotkeys to control the audio player via the keyboard.
i
m
Space
j
l
<
>
?
I don't have strong opinions about what the actual keys used should be, so if anyone else does, happy for it to be changed.
Related to #1195
Updates
Stopping audio and removing show on player close.
Implemented a
MINIMIZED
version of the playerAdded
?
hotkey to the aboveAdded a global hotkey
?
/shift+/
to bring up the list of hotkeys.