You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
The file tree can be navigated with the arrow keys. However, this doesn't actually focus the DOM elements, it just gives them different colors and changes application state.
This means that when using a screen reader, the current element stays on the old item and the screen reader will not announce the selected items. Hitting tab will select a different element than expected.
Selecting an item with enter makes the search box steal focus:
Additional comment: @umpox We prefetch file data onMouseOver on the list, but we only support the same functionality for keyboard focusing in componentDidUpdate. We should be able to use onFocus here.
Todo
..case? https://sourcegraph.slack.com/archives/C04931KQVRC/p1673961506582769focusorscrollIntoViewwhen changing expandedIds dgreene1/react-accessible-treeview#73)The file tree can be navigated with the arrow keys. However, this doesn't actually focus the DOM elements, it just gives them different colors and changes application state.
This means that when using a screen reader, the current element stays on the old item and the screen reader will not announce the selected items. Hitting tab will select a different element than expected.
Selecting an item with enter makes the search box steal focus:
Additional comment:
@umpox We prefetch file data onMouseOver on the list, but we only support the same functionality for keyboard focusing in componentDidUpdate. We should be able to use onFocus here.
cc @attfarhan