allow Ctrl+F to focus the search bar on artists, genres, playlists pages
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user