[vlc-commits] qml: avoid setting the focus to the recent video section when this one is hidden

Pierre Lamot git at videolan.org
Thu Aug 29 10:45:04 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Mon Aug 26 13:38:21 2019 +0200| [2a8f884e3ca4072748fc915f3b7cc02f6477cdbe] | committer: Jean-Baptiste Kempf

qml: avoid setting the focus to the recent video section when this one is hidden

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

 modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml b/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
index f1c624dac4..1958f67c47 100644
--- a/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
@@ -357,7 +357,12 @@ Utils.NavigableFocusScope {
                         onActionLeft: root.actionLeft(index)
                         onActionRight: root.actionRight(index)
                         onActionDown: root.actionDown(index)
-                        onActionUp: recentsGV.forceActiveFocus()
+                        onActionUp: {
+                            if (recentsSection.visible)
+                                recentsGV.forceActiveFocus()
+                            else
+                                root.actionUp(index)
+                        }
                         onActionCancel: root.actionCancel(index)
 
                         /*



More information about the vlc-commits mailing list