[vlc-devel] [PATCH 29/55] qml: don't allow going out of focus in playlist if mode is not Normal
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Jan 7 21:36:42 UTC 2021
---
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
--
2.27.0
More information about the vlc-devel
mailing list