[vlc-commits] qml: force focus on slider in control bar on activeFocus

Prince Gupta git at videolan.org
Mon Feb 8 10:00:15 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Tue Jan 19 19:06:52 2021 +0530| [4bf981259aca7c5327c65897f5d4b5e32197deec] | committer: Pierre Lamot

qml: force focus on slider in control bar on activeFocus

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/player/qml/ControlBar.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/player/qml/ControlBar.qml b/modules/gui/qt/player/qml/ControlBar.qml
index 4dbbbfc0c2..a95c1447bc 100644
--- a/modules/gui/qt/player/qml/ControlBar.qml
+++ b/modules/gui/qt/player/qml/ControlBar.qml
@@ -42,6 +42,8 @@ Widgets.NavigableFocusScope {
     Keys.onPressed: defaultKeyAction(event, 0)
     onActionCancel: history.previous()
 
+    onActiveFocusChanged: if (activeFocus) trackPositionSlider.forceActiveFocus()
+
     implicitHeight: columnLayout.implicitHeight
 
     ColumnLayout {



More information about the vlc-commits mailing list