[vlc-devel] [PATCH 47/55] qml: fix focus for MiniPlayer

Fatih Uzunoglu fuzun54 at outlook.com
Thu Jan 7 21:37:00 UTC 2021


---
 modules/gui/qt/player/qml/MiniPlayer.qml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml
index f717361c4d..b30aacf219 100644
--- a/modules/gui/qt/player/qml/MiniPlayer.qml
+++ b/modules/gui/qt/player/qml/MiniPlayer.qml
@@ -10,10 +10,9 @@ import "qrc:///util/KeyHelper.js" as KeyHelper
 import "qrc:///style/"
 
 Widgets.NavigableFocusScope {
-
     id: root
 
-    readonly property bool expanded: root.implicitHeight === root.childrenRect.height
+    readonly property bool expanded: root.implicitHeight === VLCStyle.miniPlayerHeight
 
     property var mainContent: undefined
 
@@ -82,6 +81,8 @@ Widgets.NavigableFocusScope {
             value: player.position
             visible: progressBar.value >= 0.0 && progressBar.value <= 1.0
 
+            focus: true
+
             isMiniplayer: true
 
             anchors {
-- 
2.27.0



More information about the vlc-devel mailing list