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

Possibility of using right arrow to reach a secondary action/ context menu on tree items #3217

Open
mbgower opened this issue Jan 21, 2025 · 0 comments

Comments

@mbgower
Copy link

mbgower commented Jan 21, 2025

A team is interested in having a context/overflow menu in a tree, to allow the addition of new folders, deletions, renaming, etc.

Since context menu is not something easily invoked on a mac keyboard, they have been exploring using right arrow to provide access to an overflow menu inside a tree node.

For end nodes, this would seem to be conflict-free, since right arrowing on an end node has no current action.
For a parent node, right arrow has an action. However, right arrow on an open parent node has an action which I would call a redundant action. All it does is move to the first child node of the parent, which can also be accomplished with a down arrow.

I'd like to find out reactions to the model this team is proposing. Currently, the guidance in the APG reads:

Right arrow:
When focus is on a closed node, opens the node; focus does not move.
When focus is on a open node, moves focus to the first child node.
When focus is on an end node, does nothing.

The interaction with their variant would be something like:

Right arrow:
When focus is on a closed node, opens the node; focus does not move.
When focus is on a open node, moves focus to the first child.
When focus is on an end node, moves focus to child, if one exists.

This is somewhat connected to discussions like w3c/aria#1120

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

No branches or pull requests

1 participant