[vlc-devel] [PATCH 2/2] qml: don't forward space keys to hotkey from track selection view

Pierre Lamot pierre at videolabs.io
Wed Jul 10 10:43:09 CEST 2019


---
 modules/gui/qt/qml/player/TrackSelector.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/qml/player/TrackSelector.qml b/modules/gui/qt/qml/player/TrackSelector.qml
index 5c36a7eff0..971f158eb1 100644
--- a/modules/gui/qt/qml/player/TrackSelector.qml
+++ b/modules/gui/qt/qml/player/TrackSelector.qml
@@ -60,6 +60,7 @@ Utils.NavigableFocusScope {
             Keys.onPressed:  {
                 if (event.key === Qt.Key_Space || event.matches(StandardKey.InsertParagraphSeparator)) { //enter/return/space
                     model.checked  = !model.checked
+                    event.accepted = true
                 }
             }
         }
@@ -95,8 +96,8 @@ Utils.NavigableFocusScope {
         delegate: delegateComponent
         currentIndex: 0
 
-        //Keys.forwardTo: [trackTypeTumbler.currentItem]
         KeyNavigation.right: trackTumble
+        Keys.forwardTo: [trackTypeTumbler.currentItem]
     }
     //
     Tumbler {
-- 
2.17.1



More information about the vlc-devel mailing list