add ctrl/cmd+F shortcut to focus search entry

This commit is contained in:
Drew Weymouth
2023-01-19 18:15:37 -08:00
parent e04b4d1902
commit 85548a0d84
6 changed files with 54 additions and 13 deletions
+6
View File
@@ -119,6 +119,12 @@ func (g *GenrePage) Save() SavedPage {
}
}
var _ Searchable = (*AlbumsPage)(nil)
func (g *GenrePage) SearchWidget() fyne.Focusable {
return g.searcher.Entry
}
func (a *GenrePage) onPlayAlbum(albumID string) {
if a.OnPlayAlbum != nil {
a.OnPlayAlbum(albumID, 0)