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

Test: Tree Sticky Scroll Support Focus & Keyboard Navigation #202835

Closed
2 tasks done
benibenj opened this issue Jan 19, 2024 · 2 comments
Closed
2 tasks done

Test: Tree Sticky Scroll Support Focus & Keyboard Navigation #202835

benibenj opened this issue Jan 19, 2024 · 2 comments
Assignees

Comments

@benibenj
Copy link
Contributor

benibenj commented Jan 19, 2024

Refs: #199373

Complexity: 3

Create Issue


As part of this update we allow users to focus the items in tree sticky scroll and use the arrow keys to navigate the widget.

What to test:

  1. Test that all keys listed below behave in the expected way
  2. When a sticky scroll element has focus and the users scrolls the list with the mouse wheel, focus stays in the sticky scroll widget until there is no item left. In that case the focus jumps to the list.

How to focus tree sticky scroll items:

  • Click on an element in the list (not sticky scroll element) causing the focus to be in the list. By pressing TAB key, the focus jumps to a sticky scroll element.
  • Right click with the mouse on a sticky scroll element. This will cause the element to get focus and the context menu to open. If you press ESC, focus will stay on the sticky scroll element.

Keys to test:

  • Arrow Up: moves focus to element above. If there is no element above, focus stays on the top most element
  • Arrow Down & Arrow Right: moves focus to element below. If there is no sticky scroll element below, focus the first child of the stick scroll element. This will cause the sticky scroll element to be revealed at the same location as it was (not sticky anymore).
  • Arrow Left: Collapses the node and focus moves up to the last sticky element available
  • Space & Enter: Same as left mouse click. Reveals the node under the mouse. The revealed node has focus.
  • Shift + F10: Open Context Menu for sticky element.
@lszomoru
Copy link
Member

Tested on macOS. Nice work 👏🏻

@lszomoru lszomoru removed their assignment Jan 23, 2024
@eleanorjboyd
Copy link
Member

Worked for me! My one comment is that after pressing "space" it was hard to notice that I had moved from having my highlight on the sticky scroll element to then being on a tree view element. I would press "space" again and then get an error message saying "sticky scroll has no focus"

@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants