From 96cc5db2b4062ced82faf01ddac24abef04df343 Mon Sep 17 00:00:00 2001 From: Simon Garrelou Date: Wed, 7 Dec 2022 21:51:22 +0100 Subject: Add keybinds in footer --- src/page_artists.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/page_artists.go') diff --git a/src/page_artists.go b/src/page_artists.go index 23d9a1e..e8ce180 100644 --- a/src/page_artists.go +++ b/src/page_artists.go @@ -37,6 +37,7 @@ func (a *app) artistsPage() tview.Primitive { a.loadAlbumInPanel(sel.id) a.tv.SetFocus(a.songsList) + a.updateFooter() }) // Songs list for the selected album @@ -47,6 +48,7 @@ func (a *app) artistsPage() tview.Primitive { a.artistsTree.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyLeft || event.Key() == tcell.KeyRight { a.tv.SetFocus(a.songsList) + a.updateFooter() return nil } return event @@ -55,6 +57,7 @@ func (a *app) artistsPage() tview.Primitive { a.songsList.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyLeft || event.Key() == tcell.KeyRight { a.tv.SetFocus(a.artistsTree) + a.updateFooter() return nil } return event -- cgit v1.2.3