add select all shortcut to album and playlist pages

This commit is contained in:
Drew Weymouth
2023-02-10 19:55:30 -08:00
parent 28fc4271a3
commit 14e1bb0bf4
5 changed files with 26 additions and 0 deletions
+3
View File
@@ -117,6 +117,9 @@ func (m *MainWindow) addShortcuts() {
m.Window.Canvas().Focus(s)
}
})
m.Canvas().AddShortcut(&fyne.ShortcutSelectAll{}, func(_ fyne.Shortcut) {
m.BrowsingPane.SelectAll()
})
m.Canvas().SetOnTypedKey(func(e *fyne.KeyEvent) {
if e.Name == fyne.KeySpace {