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

Tab Selection #2222

Conversation

ryanbodrug-microsoft
Copy link
Contributor

@ryanbodrug-microsoft ryanbodrug-microsoft commented Apr 19, 2020

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.

TabToContextButtons

Validation Steps Performed

  • Made sure tabing forward navigats the buttons correct order.
  • Made sure tabbing backward navigates through the buttons in reverse order.
  • Made sure tabbing will also select the row itself.
  • Verified hitting enter on the row opens the result.
  • Verified hitting enter on the context buttons executes the expected command.

…sut. Also allowing users to press 'enter' to action on the selected items.
Copy link
Contributor

@dsrivastavv dsrivastavv left a 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}">
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

@arjunbalgovind
Copy link
Contributor

I notice the second entry in the GIF is <ListView .... > of OneNote.exe. I hope that issue is tracked?

@ryanbodrug-microsoft
Copy link
Contributor Author

ryanbodrug-microsoft commented Apr 19, 2020

I notice the second entry in the GIF is <ListView .... > of OneNote.exe. I hope that issue is tracked?

@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.

image

@ryanbodrug-microsoft ryanbodrug-microsoft merged commit bd4ded4 into microsoft:dev/PowerLauncherCustomUI Apr 19, 2020
@ryanbodrug-microsoft ryanbodrug-microsoft deleted the user/ryanbod/tab_to_buttons branch April 19, 2020 18:42
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

Successfully merging this pull request may close these issues.

3 participants