[vlc-commits] qml: don't forward space keys to hotkey from track selection view

Pierre Lamot git at videolan.org
Tue Jul 16 10:13:35 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Wed Jul 10 10:43:09 2019 +0200| [0a4f18dec921573171831aa6307faf6ffed92134] | committer: Jean-Baptiste Kempf

qml: don't forward space keys to hotkey from track selection view

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 {



More information about the vlc-commits mailing list