[vlc-devel] [PATCH 24/33] qml: force focus on slider in control bar on activeFocus
Prince Gupta
guptaprince8832 at gmail.com
Wed Feb 3 10:56:40 UTC 2021
---
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 {
--
2.25.1
More information about the vlc-devel
mailing list