-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Tab Selection #2222
Tab Selection #2222
Conversation
…sut. Also allowing users to press 'enter' to action on the selected items.
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.
LGTM!
Grid.Column="1" | ||
ItemsSource="{Binding ContextMenuItems}" | ||
SelectionMode="Single" | ||
SelectedIndex="{Binding SelectedIndex}"> |
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.
nit : SelectedIndex might be confusing with a similar variable name in resultsviewmodel. Should we rename it to something like ContextMenuSelectedIndex
?
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.
nit : SelectedIndex might be confusing with a similar variable name in resultsviewmodel. Should we rename it to something like
ContextMenuSelectedIndex
?
Thats a good call, I'll update
I notice the second entry in the GIF is |
@arjunbalgovind It's actually not a bug. Thats a window walker result. I had an open OneNote window (Win+N), and copy pasted some xaml from reference. That is the first line of the text. If I click on the result it takes me to this window. Good Eye though. Thanks for calling it out. |
Summary of the Pull Request
This PR allows us to tab between the context buttons for each of the results. This is needed to be handled manually because we want to keep the focus on the textbox while the user is tabbing or using the arrow keys. It's not super clear to the user that the row is selected when the context buttons are unselected. We may need a new visual treatment.
Validation Steps Performed
enter
on the row opens the result.enter
on the context buttons executes the expected command.