-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
List block: allow tab to indent/outdent at selection start #59199
Conversation
Size Change: +4 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What should |
Flaky tests detected in 67b6b53. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7975127386
|
Question. What if you want to bold an indented list item? How do we communicate to users that selecting a list item and pressing Shift+Tab will not land them in the toolbar? Tab is easier because there's really nothing useful there for specific text changes. I wonder if this is another example of where some type of helpful hint should be used. |
@alexstine What do you imagine? Something with |
@ellatrix Is there a simple way to add a dialog/modal tip?
Ultimately the main issue is, there is no easy way to implement common shortcuts as they are already used. :( |
CC: @joedolson @afercia |
Btw, Shift+Tab is only taken over for outdent/indent for a collapsed selection. So selecting some text, and pressing Shift+Tab to get to the bold button still works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working well for me - I think we should bring it in. We
should followup with a way that lets people customize their own shortcut for going to the block toolbar (#59213)
Let's merge. Yes there's a very limited clash but only when there's a collapsed selection at the start of a list item. Most of the time you'll want to use the formatting buttons after selecting text, and you can still use the cmd+b shortcut if you really want to bold without selecting text. We can look into communicating the behaviour, but would love the help of a11y experts there to propose how. |
What?
Same as #56474, but adds tab to indent and shift+tab to outdent only when the selection is at the start of the list time, which means normal tab/shift+tab behaviour is preserved elsewhere in the list item.
Why?
See #45404.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast