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
@@ -86,6 +86,12 @@ func (a *PlaylistsPage) onSearched(query string) {
a.list.Refresh()
}
var _ Searchable = (*PlaylistsPage)(nil)
func (a *PlaylistsPage) SearchWidget() fyne.Focusable {
return a.searcher.Entry
}
func (a *PlaylistsPage) Route() controller.Route {
return controller.PlaylistsRoute()
}