From c248b89fcd7c54d1bae83861a795da924ad62a2a Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Sun, 29 Mar 2026 13:36:51 -0700 Subject: [PATCH] test: align keyboard navigation with controller paths --- ui_keyboard.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui_keyboard.go b/ui_keyboard.go index 10ee114..c8d2e2b 100644 --- a/ui_keyboard.go +++ b/ui_keyboard.go @@ -235,10 +235,10 @@ func (u *ui) handleShortcutKey(name key.Name, modifiers key.Modifiers) bool { func (u *ui) activateBreadcrumb(index int) { if index <= 0 { - u.currentPath = nil + u.state.NavigateToPath(nil) } else { crumbs := u.breadcrumbLabels() - u.currentPath = append([]string{}, crumbs[1:index+1]...) + u.state.NavigateToPath(append([]string{}, crumbs[1:index+1]...)) } u.filter() if index >= len(u.breadcrumbLabels()) { @@ -255,9 +255,9 @@ func (u *ui) breadcrumbLabels() []string { return nil } - labels := append([]string{"Vault"}, u.currentPath...) + labels := append([]string{"Vault"}, u.state.CurrentPath...) if u.state.Section == appstate.SectionTemplates { - labels = append([]string{"Templates"}, u.currentPath...) + labels = append([]string{"Templates"}, u.state.CurrentPath...) } return labels }