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

feat: Add "a" keyboard shortcut to bookmark a toot. #2268

Merged
merged 4 commits into from
Dec 2, 2022

Conversation

jcsteh
Copy link
Collaborator

@jcsteh jcsteh commented Nov 28, 2022

Fixes #2237.

@nolanlawson
Copy link
Owner

Awesome, thank you! I just added one small thing: help text (for when you press the ? key) and an aria live announcement of "bookmarked" or "unbookmarked."

@jcsteh
Copy link
Collaborator Author

jcsteh commented Nov 28, 2022

Note that when the toast appears, the alert will get read already, so I'm not sure the live region announcement is necessary.

@jcsteh
Copy link
Collaborator Author

jcsteh commented Nov 28, 2022

Sorry I forgot to update the help text. That was a silly oversight.

@nolanlawson
Copy link
Owner

Ah yes, I forgot about the alert. The alert is actually preferable to the aria live region, so that sighted people get the feedback as well.

@jcsteh
Copy link
Collaborator Author

jcsteh commented Nov 29, 2022

In that case, are you happy for me to revert your live region change? The alert already gets displayed with my original code.

@nolanlawson
Copy link
Owner

No worries, I reverted it. Now it just has the shortcut help text I added. Thanks a lot!

@nolanlawson nolanlawson merged commit 30b0066 into nolanlawson:master Dec 2, 2022
alice-werefox pushed a commit to alice-werefox/sema-werefox-cafe that referenced this pull request Apr 3, 2023
Fixes nolanlawson#2237.

Co-authored-by: Nolan Lawson <nolan@nolanlawson.com>
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.

Add a shortcut for the Bookmark action
2 participants