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

Support for keyboard navigation between views #496

Open
k-genov opened this issue Sep 29, 2023 · 1 comment
Open

Support for keyboard navigation between views #496

k-genov opened this issue Sep 29, 2023 · 1 comment

Comments

@k-genov
Copy link
Contributor

k-genov commented Sep 29, 2023

Is your feature request related to a problem? Please describe.

The workbench does not support switching between views using keyboard navigation.

Describe the solution you'd like

The workbench should support navigating between views using keystrokes. The views can be in either the same or different workbench parts - both use cases should be supported. For example: Shift + 2 activates the second view of the currently active part, Shift + v activates the next part with the previously active view.

Describe alternatives you've considered

n/a

Additional context

  • Tabbing should remain as is - focus is trapped in the active view.
  • Keystroke shortcuts should be predefined but customizable.
  • The workbench installs a focus trap on each view, enabling tabbing through the focusable fields of a view.
@k-genov k-genov added this to Triage in SCION via automation Sep 29, 2023
@danielwiehl danielwiehl changed the title Keyboard navigation between open views Support for keyboard navigation between views Oct 3, 2023
@k-genov
Copy link
Contributor Author

k-genov commented Jan 12, 2024

Currently, an application can define top-level host listener and switch between named views:

@HostListener('document:keydown.alt.1')
onAlt1KeyPress(): void {
  this._workbenchRouter.navigate([], {target: 'test-one'});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
SCION
  
Triage
Development

No branches or pull requests

1 participant