allow Ctrl+F to focus the search bar on artists, genres, playlists pages

This commit is contained in:
Drew Weymouth
2023-04-11 17:04:27 -07:00
parent 3c7fd445c7
commit 37e78f0c03
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -106,6 +106,12 @@ func (a *ArtistsGenresPage) onSearched(query string) {
a.list.Refresh()
}
var _ Searchable = (*ArtistsGenresPage)(nil)
func (a *ArtistsGenresPage) SearchWidget() fyne.Focusable {
return a.searcher.Entry
}
func (a *ArtistsGenresPage) Route() controller.Route {
if a.isGenresPage {
return controller.GenresRoute()