[vlc-commits] [Git][videolan/vlc][master] qml/MusicArtist: Fix keyboard navigation behavior

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Mon Sep 27 08:11:58 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
ed6b866f by Benjamin Arnaud at 2021-09-27T07:29:25+00:00
qml/MusicArtist: Fix keyboard navigation behavior

- - - - -


1 changed file:

- modules/gui/qt/medialibrary/qml/MusicArtist.qml


Changes:

=====================================
modules/gui/qt/medialibrary/qml/MusicArtist.qml
=====================================
@@ -61,7 +61,10 @@ FocusScope {
         width: root.width
 
         function setCurrentItemFocus(reason) {
-            artistBanner.setCurrentItemFocus(reason);
+            if (albumsListView)
+                albumsListView.setCurrentItemFocus(reason);
+            else
+                artistBanner.setCurrentItemFocus(reason);
         }
 
         Column {
@@ -127,7 +130,7 @@ FocusScope {
                         }
 
                         Navigation.downAction: function() {
-                            _currentView.setCurrentItemFocus(Qt.TabFocusReason);
+                            root.setCurrentItemFocus(Qt.TabFocusReason);
                         }
 
                         delegate: Widgets.GridItem {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ed6b866f29d9767d01f401285a0082132746e569

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ed6b866f29d9767d01f401285a0082132746e569
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list