Make the Data Layers finder keep Escape, its category and keyboard users

- Escape in the field closes the search alone, focus back on its button,
  without folding the panel or leaving the cockpit.
- The category is the group's key (LayerRows' data-group), so a language
  change keeps it; a group that goes away clears it.
- On and Off follow whether the layer is enabled, not its feed's state.
- The filter is a disclosure of two groups of toggle buttons: opening it
  focuses the chosen option, the arrows, Home and End move, Escape closes
  it, and it stays inside the panel.
- No layers match is translated, the search matches names only, and the
  rows are filtered once per frame at most.
- A voice request to show a layer the finder hides clears the finder.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-14 16:25:32 -08:00
1 parent 6ff0923f30
commit 919ea8d4c0
18 files changed
+207 -81

No files matched your search

+4
View File
@@ -3727,6 +3727,10 @@ function findDataLayerRow(layerId) {
}
function focusDataLayerRow(row, layerId) {
// A row the Data Layers finder hides could not be seen: show every row
// again (LAYER_FINDER_CLEAR_EVENT in LayerFinder.vue).
if (row.classList.contains('is-filtered'))
document.dispatchEvent(new CustomEvent('gev:layer-finder-clear'));
row.scrollIntoView({ block: 'center', behavior: 'smooth' });
row.classList.remove('gev-voice-focus');
void row.offsetWidth;