-
Notifications
You must be signed in to change notification settings - Fork 61
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
Set keyboard focus on graph/table when selecting an analysis #612
Set keyboard focus on graph/table when selecting an analysis #612
Conversation
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.
When clicking on an output title, the focus is given to the whole output container. I think it should be given to the output's chart or table:
- for a timegraph or xy chart, so that we can then use WASD keys to zoom and pan
- for the event table so that we can use the arrow keys to navigate the table
2ce0635
to
2c26823
Compare
packages/react-components/src/components/xy-output-component.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/src/components/datatree-output-component.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/src/components/datatree-output-component.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/src/components/table-output-component.tsx
Outdated
Show resolved
Hide resolved
c811c74
to
e650bb5
Compare
packages/react-components/src/components/timegraph-output-component.tsx
Outdated
Show resolved
Hide resolved
02d7edb
to
186193e
Compare
theia-extensions/viewer-prototype/src/browser/trace-viewer/trace-viewer.tsx
Show resolved
Hide resolved
f24404b
to
07704c9
Compare
683ddba
to
b76056b
Compare
packages/react-components/src/components/abstract-output-component.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/src/components/abstract-output-component.tsx
Outdated
Show resolved
Hide resolved
6a951bf
to
3b5aa41
Compare
@hriday-panchasara could you please rebase this PR? Then a final round of review can be done. Thanks |
3b5aa41
to
98126a1
Compare
fixes eclipse-cdt-cloud#414 When clicking on an analysis in the Available Analysis list, the analysis is scrolled into view and given keyboard focus. When clicking on an analysis title in the trace tab, keyboard focus should be the analysis' graph/chart region. If a View that is already open is selected in the sidebar, the View's title area should pulse to temporarily bring attention to the View panel. Signed-off-by: hriday-panchasara <[email protected]>
fa8b6ba
to
b6b635f
Compare
@bhufmann Rebased on top of master |
This PR has changes for the following features suggested by @PatrickTasse in #311
When clicking on an analysis in the Available Analysis list, in the selected trace tab, the analysis is scrolled into view and given keyboard focus. User can click tab to access the tree and chart of the focused graph.
![focus-example-1](https://user-images.githubusercontent.com/92893187/149401948-2ff5e1ae-6cd7-4c69-a246-27775ab5712c.gif)
The trace tab should be scrolled to make that analysis visible, whether it is being opened for the first time or if it was already created previously.
![focus-example-2](https://user-images.githubusercontent.com/92893187/149405435-104277cd-3710-4e91-b249-a00b5bc1865c.gif)
When clicking on an analysis title in the trace tab, keyboard focus should be the analysis' graph/chart region. This is indicated by a blue focus border, allowing the user to directly use keyboard interactions/shortcuts
![focus-example-3](https://user-images.githubusercontent.com/92893187/149405811-17b532bd-9026-447e-bf53-ee57e91d47f6.gif)
fixes #414
For some reason the focus outline is not being shown properly in some of the screen recordings. This is the default tab focus styling but we can change the css to make the outline more prominent.
Signed-off-by: hriday-panchasara [email protected]