vlc | branch: master | Pierre Lamot <[email protected]> | 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) /* _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
