-
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
ListView: Expand/Collapse subtree on double click on a List View item #51327
Conversation
Size Change: +10 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
Flaky tests detected in 9028be0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5209858882
|
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 works great!
In some applications like Figma, double-clicking allows you to rename what is being clicked on. There has been some conversation around adding such functionality. I would want to make sure that merging this PR does not negatively impact that work should it be included in the future.
@getdave, what are your thoughts here?
I wasn't aware of that conversation, and the "naming" features is important to have as well. So, how to accommodate "Expand/Collapse" and "Rename" together? Some options: A priority to expand collapse
B priority to rename
In MacOS |
I would expect that double click would be to rename. Expand the entire tree feels like a power user level feature and so it would be ok to have this behind a modifier key requirement. |
I agree since this is how most design applications work: Figma, Sketch, etc. |
It makes sense, I agree. In Windows Anyone has opinion on the keybinding ? |
What?
#51253
Why?
Double-clicking to expand seems like a natural behavior. For example, storybooks, Windows Explorer etc.
How?
Add onDoubleClick event handler to
ListViewBlockSelectButton
.Testing Instructions
Screenshots or screencast
2023-06-08.18.53.15.mov