diff options
author | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-07 21:51:22 +0100 |
---|---|---|
committer | Simon Garrelou <simon.garrelou@gmail.com> | 2022-12-07 21:51:22 +0100 |
commit | 96cc5db2b4062ced82faf01ddac24abef04df343 (patch) | |
tree | cbede4969df8d792aa54b3541d3c99278172acf8 /src/page_artists.go | |
parent | 38fe18fc9b89365566359d075335a8d474f16709 (diff) | |
download | termsonic-96cc5db2b4062ced82faf01ddac24abef04df343.tar.gz termsonic-96cc5db2b4062ced82faf01ddac24abef04df343.zip |
Add keybinds in footer
Diffstat (limited to 'src/page_artists.go')
-rw-r--r-- | src/page_artists.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { | |||
37 | 37 | ||
38 | a.loadAlbumInPanel(sel.id) | 38 | a.loadAlbumInPanel(sel.id) |
39 | a.tv.SetFocus(a.songsList) | 39 | a.tv.SetFocus(a.songsList) |
40 | a.updateFooter() | ||
40 | }) | 41 | }) |
41 | 42 | ||
42 | // Songs list for the selected album | 43 | // Songs list for the selected album |
@@ -47,6 +48,7 @@ func (a *app) artistsPage() tview.Primitive { | |||
47 | a.artistsTree.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { | 48 | a.artistsTree.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { |
48 | if event.Key() == tcell.KeyLeft || event.Key() == tcell.KeyRight { | 49 | if event.Key() == tcell.KeyLeft || event.Key() == tcell.KeyRight { |
49 | a.tv.SetFocus(a.songsList) | 50 | a.tv.SetFocus(a.songsList) |
51 | a.updateFooter() | ||
50 | return nil | 52 | return nil |
51 | } | 53 | } |
52 | return event | 54 | return event |
@@ -55,6 +57,7 @@ func (a *app) artistsPage() tview.Primitive { | |||
55 | a.songsList.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { | 57 | a.songsList.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { |
56 | if event.Key() == tcell.KeyLeft || event.Key() == tcell.KeyRight { | 58 | if event.Key() == tcell.KeyLeft || event.Key() == tcell.KeyRight { |
57 | a.tv.SetFocus(a.artistsTree) | 59 | a.tv.SetFocus(a.artistsTree) |
60 | a.updateFooter() | ||
58 | return nil | 61 | return nil |
59 | } | 62 | } |
60 | return event | 63 | return event |