Skip to content

Fix focus panel not resetting to left when switching tabs#83

Merged
matrosov merged 1 commit intomainfrom
fix/focus-panel-reset
Mar 17, 2026
Merged

Fix focus panel not resetting to left when switching tabs#83
matrosov merged 1 commit intomainfrom
fix/focus-panel-reset

Conversation

@matrosov
Copy link
Member

Summary

  • select_tab(), next_tab(), prev_tab() now reset focus_panel to Left
  • Fixes scrolling the right (detail) panel instead of the left (list) panel after tab switch
  • Also fixes search result → Vulnerabilities and source map 'u' → Vulnerabilities jumps

Test plan

  • Open any SBOM in view mode, go to Tree tab, press Enter on a component (focuses right panel)
  • Switch to Vulnerabilities tab (press 3) — j/k should scroll the vuln list, not the detail panel
  • Press Tab/Shift+Tab to cycle tabs — left panel always focused on arrival

Tab switching via select_tab(), next_tab(), prev_tab() now resets
focus_panel to Left, ensuring the list panel is focused by default.
Also fixes search result and source map jumps to Vulnerabilities tab.
@matrosov matrosov merged commit d601768 into main Mar 17, 2026
@matrosov matrosov deleted the fix/focus-panel-reset branch March 17, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant