Skip to content

Commit

Permalink
ctrl+F to focus search bar on Artists page
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Aug 2, 2023
1 parent 1c27a26 commit a2a56b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/browsing/artistspage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2a56b3

Please sign in to comment.