SchweizerischeBundesbahnen / scion-workbench

SCION Workbench enables the creation of Angular web applications that require a flexible layout to arrange content side-by-side or stacked, all personalizable by the user via drag & drop.
Eclipse Public License 2.0
77 stars 10 forks source link

Support for keyboard navigation between views #496

Open k-genov opened 10 months ago

k-genov commented 10 months ago

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

k-genov commented 7 months ago

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