make search bar on tracks page Ctrl+F focusable; reset tracklist selection on clear

This commit is contained in:
Drew Weymouth
2023-04-20 21:27:46 -07:00
parent a56daa0c7f
commit cf22503610
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -88,6 +88,12 @@ func (t *TracksPage) OnSongChange(track *subsonic.Child, lastScrobbledIfAny *sub
}
}
var _ Searchable = (*TracksPage)(nil)
func (t *TracksPage) SearchWidget() fyne.Focusable {
return t.searcher.Entry
}
func (t *TracksPage) OnSearched(query string) {
t.searchText = query
if query == "" {