[vlc-commits] qml: add SelectAll key event to playlist

Fatih Uzunoglu git at videolan.org
Tue Aug 18 17:15:02 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Tue Jul 14 21:35:04 2020 +0300| [7841f6e158ed7f6d9c3a77cea581fb737f636428] | committer: Pierre Lamot

qml: add SelectAll key event to playlist

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

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

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 03749e2971..b56030ffa3 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -683,5 +683,14 @@ Widgets.NavigableFocusScope {
 
     Keys.priority: Keys.AfterItem
     Keys.forwardTo: view
-    Keys.onPressed: defaultKeyAction(event, 0)
+    Keys.onPressed: {
+        if (event.matches(StandardKey.SelectAll))
+        {
+            root.plmodel.selectAll();
+        }
+        else
+        {
+            defaultKeyAction(event, 0)
+        }
+    }
 }



More information about the vlc-commits mailing list