DYN-8623 : improve accessibility#16237
Conversation
There was a problem hiding this comment.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8623
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
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