-
Notifications
You must be signed in to change notification settings - Fork 668
DYN-8623 : improve accessibility #16237
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
Conversation
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8623
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.
Pull Request Overview
This PR adds keyboard navigation support (Enter and arrow keys) to the new autocomplete component and removes an unused import.
- Handle Escape, Enter, Up/Left, and Down/Right keys by moving selection and marking events as handled.
- Remove unused
using Dynamo.ViewModels;directive.
Files not reviewed (1)
- src/NodeAutoCompleteViewExtension/Views/NodeAutoCompleteBarView.xaml: Language not supported
Comments suppressed due to low confidence (1)
src/NodeAutoCompleteViewExtension/Views/NodeAutoCompleteBarView.xaml.cs:118
- New key handling logic for Enter and arrow keys isn’t covered by existing tests. Please add unit or integration tests to verify navigation index changes and that events are marked as handled.
e.Handled = true;
| { | ||
| case Key.Escape: | ||
| CloseAutoComplete(); | ||
| e.Handled = true; |
Copilot
AI
May 27, 2025
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.
There’s repeated e.Handled = true; in each case branch. Consider using a single flag to mark handled once or consolidate common logic after the switch to reduce duplication.
Maybe an issue with the build ? When using arrow keys it changes the preview cluster. |
Let me rebuild and retest |
johnpierson
left a comment
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.
holy smokes. this works awesome. other than that merge conflict. this lgtm. Will show this in demo today I think.
Purpose
Handle enter and arrow keys in the new autocomplete. For the old one the improvement is included in this pr.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Addition of keyboard navigation in the Node AutoComplete bar.
Reviewers
@DynamoDS/synapse