[vlc-commits] qml: don't allow going out of focus in playlist if mode is not Normal

Fatih Uzunoglu git at videolan.org
Tue Jan 12 13:20:40 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan  8 00:36:42 2021 +0300| [5cb73a52227017cf0e096b8f7714b8671833bada] | committer: Pierre Lamot

qml: don't allow going out of focus in playlist if mode is not Normal

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cb73a52227017cf0e096b8f7714b8671833bada
---

 modules/gui/qt/playlist/qml/PlaylistListView.qml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index a16af0f965..ca68b55a20 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -519,6 +519,16 @@ Widgets.NavigableFocusScope {
                     }
                 }
 
+                navigationUp: function(index) {
+                    if (mode === PlaylistListView.Mode.Normal)
+                        root.navigationUp(index)
+                }
+
+                navigationDown: function(index) {
+                    if (mode === PlaylistListView.Mode.Normal)
+                        root.navigationDown(index)
+                }
+
                 onActionAtIndex: {
                     if (index < 0)
                         return



More information about the vlc-commits mailing list