From a2a56b3d8caff0a0ad0daba756a92bd083838412 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Wed, 2 Aug 2023 16:07:32 -0600 Subject: [PATCH] ctrl+F to focus search bar on Artists page --- ui/browsing/artistspage.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/browsing/artistspage.go b/ui/browsing/artistspage.go index 144f52a..1fffc4a 100644 --- a/ui/browsing/artistspage.go +++ b/ui/browsing/artistspage.go @@ -113,6 +113,12 @@ func (a *ArtistsPage) load() { a.onSearched(a.searcher.Entry.Text, true) } +var _ Searchable = (*ArtistsPage)(nil) + +func (a *ArtistsPage) SearchWidget() fyne.Focusable { + return a.searcher +} + func (a *ArtistsPage) onSearched(query string, firstLoad bool) { // since the playlist list is returned in full non-paginated, we will do our own // simple search based on the name, description, and owner, rather than calling a server API