SchweizerischeBundesbahnen/scion-workbench

Support for keyboard navigation between views

k-genov opened this issue · 1 comments

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.

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'});
}