[vlc-devel] [PATCH 08/19] qml: add SelectAll key event to playlist

Fatih Uzunoglu fuzun54 at outlook.com
Wed Aug 12 23:17:15 CEST 2020


---
 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)
+        }
+    }
 }
-- 
2.25.1



More information about the vlc-devel mailing list