stable

Clone or download

Read-only

feat: Kbd navigation from filter input

Currently when users start typing something in the filter input of the SwitchTo modal, to reach the first matching element, they have to hit <tab> key twice (one for the "legacy" search button, one for the matching element. Knowing that we can already navigate with arrow keys between elements, this contribution allows to navigate from/to the filter input using arrow down/up keys. To test: enter some text, then hit arrow down key => the first project or recent item or matching item should have the focus. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: I0f8c1d7b3f9638b8b664bd30491491982212d248

Modified Files

Name
M src/scripts/switch-to/src/components/Header/SwitchToFilter.test.ts +64 −0 Go to diff View file
M src/scripts/switch-to/src/components/Header/SwitchToFilter.vue +21 −1 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.test.ts +43 −0 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.ts +2 −0 Go to diff View file
M src/scripts/switch-to/src/stores/keyboard-navigation.test.ts +129 −12 Go to diff View file
M src/scripts/switch-to/src/stores/keyboard-navigation.ts +22 −0 Go to diff View file